unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: rixed@happyleptic.org
To: guile-user@gnu.org
Subject: Re: debugging guile runtime
Date: Tue, 30 Aug 2011 12:56:43 +0200	[thread overview]
Message-ID: <20110830105642.GA16079@ccellier.rd.securactive.lan> (raw)
In-Reply-To: <87y5ycowh3.fsf@ambire.localdomain>

The problem is not that the *ports* are not closed (they are), but that
the other *files* (that are not port) are not closed.

When a program exec another one, it's supposed to close all files but 0,
1 and 2. open-process only closes the ports, so if you have other files
opened (that you have opened from C for instance) these files will be
communicated to the new process, which is not the intended behavior.

I state that open-process should _not_ try to close *ports*, but should
close all *files* (but 0, 1 and 2) instead.




  reply	other threads:[~2011-08-30 10:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-29 12:50 debugging guile runtime rixed
2011-08-29 14:35 ` Nala Ginrut
2011-08-29 16:24   ` rixed
2011-08-29 19:20     ` Thien-Thi Nguyen
2011-08-30 10:56       ` rixed [this message]
2011-08-30 15:55         ` Ludovic Courtès
2011-08-30 16:25           ` rixed
2011-08-30 22:25             ` Ludovic Courtès
2011-08-31  7:38               ` rixed
2011-08-31 21:10             ` Andy Wingo
2011-08-31 21:07 ` Andy Wingo
2011-09-01 11:32   ` rixed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110830105642.GA16079@ccellier.rd.securactive.lan \
    --to=rixed@happyleptic.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).