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

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!panther!mothost!merlin.dev.cdx.mot.com!fendahl.dev.cdx.mot.com!mcook
  3. From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
  4. Subject: Re: Non blocking open of FIFO: Can it be done in perl?
  5. Message-ID: <mcook.722297583@fendahl.dev.cdx.mot.com>
  6. Keywords: O_NDELAY in open on a FIFO
  7. Sender: news@merlin.dev.cdx.mot.com (USENET News System)
  8. Nntp-Posting-Host: fendahl.dev.cdx.mot.com
  9. Organization: Motorola Codex, Canton, Massachusetts
  10. References: <bmarlowe.722046368@ka> <mcook.722100624@fendahl.dev.cdx.mot.com> <Bxz8C8.Gzq@chinet.chi.il.us>
  11. Distribution: usa
  12. Date: Fri, 20 Nov 1992 22:13:03 GMT
  13. Lines: 18
  14.  
  15. les@chinet.chi.il.us (Leslie Mikesell) writes:
  16.  
  17. >In article <mcook.722100624@fendahl.dev.cdx.mot.com> mcook@fendahl.dev.cdx.mot.com (Michael Cook) writes:
  18. >>bmarlowe@ka.reg.uci.edu (Brett Marlowe) writes:
  19. >>
  20. >>>is the there a way to specify O_NDELAY on an open call?
  21. >>
  22. >>No, but you can tweak the filehandle afterwards.  See fcntl.
  23.  
  24. >Ummm, afterwards won't ever come if there isn't another process on
  25. >the other end of the FIFO.
  26.  
  27. Oh, right.  Silly me.
  28.  
  29. I suppose you could use syscall() instead of open(), and then use
  30. open(FH,">&$fd") on the resulting file descriptor.
  31.  
  32. Michael.
  33.