home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / perl / 7036 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.1 KB  |  29 lines

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