Overview
| Artifact ID: | 261dae79e30d245d5899c48603a55291ed672c82 |
|---|---|
| Ticket: | 1343161fffffffffffffffffffffffffffffffff
exec implemenation fails to close() open file descriptors |
| User & Date: | ferrieux on 2008-04-07 13:30:14 |
Changes
- icomment:
Logged In: YES user_id=496139 Originator: NO OK I get it now. Why didn't you say earlier that your inherited descriptors were created inside an extension ? (Maybe you did, sorry for not combing the haystack ;-). Now, I agree this is at *most* a feature request, but I'll even try to requalify this as "out of Tcl's realm". Indeed, any other shell or environment able to (1) load that library and (2) spawn a child will have the very same problem. Moreover, I think it is relatively easy to work around that vendor bug, e.g. in Bourne shell, provided you have an idea on the range of file descriptors to close *and* they are smaller than 10: set f [open "|sh -c {exec 3>&- 4>&- ... 9>&-;exec mycommand myargs} 2>@ stderr" r+] Please tell me if you need additional help to make this work. Otherwise, do you agree we may rightfully close the entry as "works for me" ? - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"