Hi!

ri...@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’.


Reply via email to