home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!panther!mothost!merlin.dev.cdx.mot.com!fendahl.dev.cdx.mot.com!mcook
- From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
- Subject: Re: Non blocking open of FIFO: Can it be done in perl?
- Message-ID: <mcook.722297583@fendahl.dev.cdx.mot.com>
- Keywords: O_NDELAY in open on a FIFO
- Sender: news@merlin.dev.cdx.mot.com (USENET News System)
- Nntp-Posting-Host: fendahl.dev.cdx.mot.com
- Organization: Motorola Codex, Canton, Massachusetts
- References: <bmarlowe.722046368@ka> <mcook.722100624@fendahl.dev.cdx.mot.com> <Bxz8C8.Gzq@chinet.chi.il.us>
- Distribution: usa
- Date: Fri, 20 Nov 1992 22:13:03 GMT
- Lines: 18
-
- les@chinet.chi.il.us (Leslie Mikesell) writes:
-
- >In article <mcook.722100624@fendahl.dev.cdx.mot.com> mcook@fendahl.dev.cdx.mot.com (Michael Cook) writes:
- >>bmarlowe@ka.reg.uci.edu (Brett Marlowe) writes:
- >>
- >>>is the there a way to specify O_NDELAY on an open call?
- >>
- >>No, but you can tweak the filehandle afterwards. See fcntl.
-
- >Ummm, afterwards won't ever come if there isn't another process on
- >the other end of the FIFO.
-
- Oh, right. Silly me.
-
- I suppose you could use syscall() instead of open(), and then use
- open(FH,">&$fd") on the resulting file descriptor.
-
- Michael.
-