Overview
| Artifact ID: | 047317fe7a510e95bd445fc0137176be87eec54a |
|---|---|
| Ticket: | 1343161fffffffffffffffffffffffffffffffff
exec implemenation fails to close() open file descriptors |
| User & Date: | illumino on 2005-11-01 05:41:41 |
Changes
- icomment:
Logged In: YES user_id=426773 No, I'd call it a BUG or at least an UNDOCUMENTED FEATURE :-), as the language provides no way to access the relevant system calls to do the IMHO correct thing (not give away private file descriptors) to child processes. Without fork() & close() access, how do I stop the pollution of child processes? I don't see it as the child executables' responsibility to cleanup the mess created by the parent process. In C & Perl if I fork() a child process I have the opportunity to cleanup any open file descriptors before issuing and exec() system call, as I should I opened them. While I can see that additional code could be a FEATURE REQUEST, I feel that polluting child processes is a BUG - but each to there own opinion.
- login: "illumino"
- mimetype: "text/plain"
- username: "illumino"