home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!glasgow!sinclair
- From: sinclair@dcs.glasgow.ac.uk (Duncan Sinclair)
- Newsgroups: comp.unix.programmer
- Subject: FIFOs vs. pipes w.r.t EOFs and select
- Message-ID: <Bu68zC.F9C@dcs.glasgow.ac.uk>
- Date: 6 Sep 92 19:33:12 GMT
- Organization: Glasgow University Computing Science Dept.
- Lines: 26
-
- I've just been messing about with pipes, and named pipes, and
- found a strange problem.
-
- When I'm selecting on a normal pipe, and the other side closes it,
- select wakes up on that pipe, and I get an eof. That's what I expect.
-
- When I'm selecting on a named pipe, and the other side closes it,
- select doesn't wake up, and so I dont get to see any eof that may
- or may not be there. This doesn't seem right.
-
- The standard reason for not getting eofs, is because some other process
- has the descriptor open, but this doesn't seem likely in this case. I
- don't get the problem with normal pipes, and I'm creating the named
- pipes with a compatibility routine to make them look like normal pipes,
- so I don't see where the difference could be.
-
- This is with SunOS 4.1.1. Is this behaviour normal, or is it a problem
- with Sun's implementation, or is it me just screwing up as usual?
-
-
-
- --
- Duncan Sinclair | Try one sinclair@dcs.glasgow.ac.uk
- Computing Science Research Student | of these: sinclair@uk.ac.glasgow.dcs
- University of Glasgow |..!mcsun!ukc!uk.ac.glasgow.dcs!sinclair
- --- Rave Culture: Don't techno for an answer. ---
-