12 Apr
2006
12 Apr
'06
5:29 p.m.
Timothy White wrote:
IIRC, doing an exec, passes all fd's to the new process, which /should/ include pipes I think. But that's just something I picked up from using some other software, and it's been a long time since I coded C, so don't quote me! ;-)
That's true -- the hard part of having the newly exec()d process realize those fds are there, their numbers, their purpose, any associated state, etc...
It's certainly possible, but it's hard to debug if it doesn't work quite right (and leaked fds will likely go unnoticed in small quantities...)
Tim
Linux Counter user #273956
-- Ben Winslow <rain@bluecherry.net>