On Mon, Dec 10, 2012 at 3:23 PM, David Korn <[email protected]> wrote: > 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.
The question was which C API should be used to clear the CLOEXEC flag. I know libshell keeps track of such flags and must be made aware of any changes. Irek _______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
