home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!ncar!uchinews!machine!chinet!les
- From: les@chinet.chi.il.us (Leslie Mikesell)
- Subject: Re: Non blocking open of FIFO: Can it be done in perl?
- Message-ID: <BxwD69.1IH@chinet.chi.il.us>
- Keywords: O_NDELAY in open on a FIFO
- Organization: Chinet - Public Access UNIX
- References: <bmarlowe.722046368@ka>
- Distribution: usa
- Date: Wed, 18 Nov 1992 05:42:08 GMT
- Lines: 16
-
- In article <bmarlowe.722046368@ka> bmarlowe@ka.reg.uci.edu (Brett Marlowe) writes:
-
- >I'm using FIFO as a rendezvouz point between two entirely different
- >systems. My question is... is the there a way to specify O_NDELAY on
- >an open call? Alternatively is there a way to make sure there is a
- >reader on the other end of the FIFO?
-
- At least on sysVish machines, opening a FIFO for read/write access
- is non-blocking. As a side effect you won't ever see EOF even
- if the other processes open and close the fifo repeatedly, so reads
- will always wait for some data which is what you usually want for the
- case of one reader process acting as some kind of server to one or more
- writing process.
-
- Les Mikesell
- les@chinet.chi.il.us
-