From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27419 invoked by alias); 18 Oct 2007 03:53:34 -0000 Received: (qmail 27409 invoked by uid 22791); 18 Oct 2007 03:53:32 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 18 Oct 2007 03:53:29 +0000 Received: by nf-out-0910.google.com with SMTP id b21so32638nfd for ; Wed, 17 Oct 2007 20:53:27 -0700 (PDT) Received: by 10.78.159.7 with SMTP id h7mr25658hue.1192679606673; Wed, 17 Oct 2007 20:53:26 -0700 (PDT) Received: by 10.78.175.12 with HTTP; Wed, 17 Oct 2007 20:53:26 -0700 (PDT) Message-ID: Date: Thu, 18 Oct 2007 03:53:00 -0000 From: "srinivas naga vutukuri" To: ecos-discuss@ecos.sourceware.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_23963_19409328.1192679606665" X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] the opened socket is not closed... X-SW-Source: 2007-10/txt/msg00097.txt.bz2 ------=_Part_23963_19409328.1192679606665 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 541 Hi, Am just using the file ping_test.c under ecos/packages/net/common/current/tests directory... found that the opened socket is not closed at the end of ping_test()/ping6_test () functions. actually the test file is single time runner... probably i thought using these functions to continously running several times would be having any problems, like trying to open many sockets or like that.... if so, can adding close(s) at the end of functions would be on safe side... just attached the patch for it... best regards, srinivas. ------=_Part_23963_19409328.1192679606665 Content-Type: application/octet-stream; name="ping_test.c.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ping_test.c.patch" X-Attachment-Id: f_f7wqmbjg Content-length: 920 SW5kZXg6IHBpbmdfdGVzdC5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpS Q1MgZmlsZTogL2N2cy9lY29zL2Vjb3Mtb3B0L25ldC9uZXQvY29tbW9uL2N1 cnJlbnQvdGVzdHMvcGluZ190ZXN0LmMsdg0KcmV0cmlldmluZyByZXZpc2lv biAxLjYNCmRpZmYgLXUgLXIxLjYgcGluZ190ZXN0LmMNCi0tLSBwaW5nX3Rl c3QuYwkxNiBTZXAgMjAwNSAxNToxNToxNCAtMDAwMAkxLjYNCisrKyBwaW5n X3Rlc3QuYwkxOCBPY3QgMjAwNyAwMzozMzo1MyAtMDAwMA0KQEAgLTM2Miw2 ICszNjIsNyBAQA0KICAgICBtZW1jcHkoJmFkZHIsaG9zdCxzaXplb2YoYWRk cikpOw0KICAgICBhZGRyLnNpbjZfYWRkci5zNl9hZGRyWzE1XSA9IGFkZHIu c2luNl9hZGRyLnM2X2FkZHJbMTVdICsgMzI7DQogICAgIHBpbmc2X2hvc3Qo cywgJmFkZHIpOw0KKyAgICBjbG9zZShzKTsJDQogfQ0KICNlbmRpZg0KIA0K QEAgLTQxOSw2ICs0MjAsNyBAQA0KICAgICAvLyBOb3cgdHJ5IGEgYm9ndXMg aG9zdA0KICAgICBob3N0LnNpbl9hZGRyLnNfYWRkciA9IGh0b25sKG50b2hs KGhvc3Quc2luX2FkZHIuc19hZGRyKSArIDMyKTsNCiAgICAgcGluZ19ob3N0 KHMsICZob3N0KTsNCisgICAgY2xvc2Uocyk7CQkNCiB9DQogDQogdm9pZA0K DQo= ------=_Part_23963_19409328.1192679606665 Content-Type: text/plain; charset=us-ascii Content-length: 148 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ------=_Part_23963_19409328.1192679606665--