Subject: Re: [ast-developers] Cleaning the CLOEXEC flag for a descriptor?
--------
> How do I clear a shell fd's CLOEXEC (close-on-exec) flag using libshell's C
> API?
If file descriptor x is CLOEXEC, then
{ any_command;} {x}<& x
should run any_command with x passed down with close-on-exec clear.
Inside any_command,
exec {x}< &x
should set CLOEXEC on x.
David Korn
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers