"Default" value for close on exec flag



Hi!

As far as I can see, all new descriptors have close on exec flag set to
0. Is there any way to change this without calling fcntl on each one of
them? So that after the call "pipe(pipe_ends)" both pipe_ends[0] and
pipe_ends[1] have close on exec set to 1?

--
Minds, like parachutes, function best when open
.