Re^2: Named Pipe Creation

Maarten Litmaath maart at cs.vu.nl
Fri Jul 7 01:15:05 AEST 1989


bbadger at x102c.harris-atd.com (Badger BA 64810) writes:
\...  You don't necessarily want 
\umask changed, because there are other files to open, etc.  Easier than 
\saving and restoring the umask is simply running 
\	``chmod(pipe_name,mode_bits)''
\after creating the named pipe.  This assumes that the receiver is
\synchronized so as to not attempt and fail for the few ms between
\creation and mode setting.

This attitude leads to (deeply buried) race conditions.
-- 
"I HATE arbitrary limits, especially when |Maarten Litmaath @ VU Amsterdam:
   they're small."  (Stephen Savitzky)    |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.questions mailing list