From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: debugging guile runtime Date: Tue, 30 Aug 2011 17:55:22 +0200 Message-ID: <87wrduhp1x.fsf@gnu.org> References: <20110829125030.GB30079@ccellier.rd.securactive.lan> <20110829162400.GB21699@ccellier.rd.securactive.lan> <87y5ycowh3.fsf@ambire.localdomain> <20110830105642.GA16079@ccellier.rd.securactive.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1314719746 12005 80.91.229.12 (30 Aug 2011 15:55:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2011 15:55:46 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Aug 30 17:55:42 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QyQf7-0005ER-EO for guile-user@m.gmane.org; Tue, 30 Aug 2011 17:55:41 +0200 Original-Received: from localhost ([::1]:51333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyQf6-0004iI-Vr for guile-user@m.gmane.org; Tue, 30 Aug 2011 11:55:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyQf4-0004iD-Dw for guile-user@gnu.org; Tue, 30 Aug 2011 11:55:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyQf3-0003C2-87 for guile-user@gnu.org; Tue, 30 Aug 2011 11:55:38 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:38780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyQf3-0003Bk-2N for guile-user@gnu.org; Tue, 30 Aug 2011 11:55:37 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QyQf0-00059i-6V for guile-user@gnu.org; Tue, 30 Aug 2011 17:55:34 +0200 Original-Received: from 193.50.110.208 ([193.50.110.208]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Aug 2011 17:55:34 +0200 Original-Received: from ludo by 193.50.110.208 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Aug 2011 17:55:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.50.110.208 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 13 Fructidor an 219 de la =?iso-8859-1?Q?R=E9volutio?= =?iso-8859-1?Q?n?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:MzibbIu7fvT3MwBertpwjZQRb4k= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8749 Archived-At: Hi! rixed@happyleptic.org skribis: > The problem is not that the *ports* are not closed (they are), but that > the other *files* (that are not port) are not closed. Like in C, it’s up to the application to close those ports that it considers worth closing upon exec. If what you want is to close every FD from 3 to ∞, then the typical way to do this is to loop over those numbers and call close(2) (that’s how libdaemon and similar tools do that.) Or did I miss something? Thanks, Ludo’.