Overview
| Artifact ID: | 0f808ea5c2e26a5c5fa6d89fd0bdd115feff27d8 |
|---|---|
| Ticket: | 1343211fffffffffffffffffffffffffffffffff
exec implemenation fails to close() open file descriptors |
| User & Date: | illumino on 2006-01-10 05:03:12 |
Changes
- icomment:
Logged In: YES user_id=426773 OK, I think I know why the confusion exists. The problem arises (in my case) because a 3rd party shared library opens the FDs (not TCL) but because TCL does not implement fork()/exec() just 'exec' there is no where I can insert code to close all the shared library open()ed FDs. So this leads to them being inherited by the child process, which will most likely ignore them, but importantly it keeps them open which leads to all sort of issues as time progresses. Regards, Peter Bray PS: I our case the shared library is provided by a vendor, not written locally (ie no source code), so we can't add close on exec options to the socket open calls.
- login: "illumino"
- mimetype: "text/plain"
- username: "illumino"