At Wed, 5 Feb 2003 12:20:23 +0100 (CET),
Jaroslav wrote:
> 
> Well, I and Abramo think that it's better to force application developers 
> to clean allocated things before they'll call exec().

the problem is not only the explicit exec() call.
without this bit, you'll pass the fds to other processes even by
popen() or system() or whatever.  that is, if your application calls
an external program in the middle, it can block the operation.

i don't see any critical drawback of setting FD_CLOEXEC as default.
the application which needs to pass the alsa-lib's fds _explicitly_
can reset the bit via fcntl() again before calling exec().


Takashi


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to