guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debugging guile runtime


From: Ludovic Courtès
Subject: Re: debugging guile runtime
Date: Tue, 30 Aug 2011 17:55:22 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Hi!

address@hidden 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’.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]