From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,96b83a4bbdec28bc X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-05-04 13:19:37 PST Path: sparky!uunet!spool.mu.edu!mips!pacbell.com!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nntpd.lkg.dec.com!usenet From: jc@sppip7.lkg.dec.com (John Chambers) Newsgroups: comp.sys.dec Subject: Re: Does SIGIO work with FIFOs in Ultrix 4.2? Keywords: SIGIO FIFO Message-ID: <1992May4.201937.5553@nntpd.lkg.dec.com> Date: 4 May 92 20:19:37 GMT Article-I.D.: nntpd.1992May4.201937.5553 References: <1992Apr28.143220.7221@nntpd.lkg.dec.com> <1992Apr29.195901.10309@nntpd.lkg.dec.com> Sender: usenet@nntpd.lkg.dec.com (USENET News System) Reply-To: jc@sppip7.lkg.dec.com (John Chambers) Organization: Digital Equipment Corporation Well, here I go yet again, following up my own message. I just thought that maybe someone else might like to hear the resolution. Matt Thomas (thomas@lkg.dec.com) verified that the problem is truly a kernel bug, and that there is no apparent workaround. It seems that SIGIO simply doesn't work (i.e., is not generated) when writing to a fifo on Ultrix. The write routine doesn't send the signal. I checked on a 3.1 system that we happen to have lurking nearby, and it is just as broken there as on our 4.1 and 4.2 systems. The SIGIO signal is sent by the close code in the kernel, so it works for things like scripts that echo messages one at a time to a fifo, closing their output after each line. But for ordinary writes, there is no way that a program can get an interrupt when there is new data. SIGIO works just fine if a process sends it via kill(pid,SIGIO), but this can only be done if both processes are on the same machine, and the sender is either superuser of the same uid as the recipient (and knows the pid of the recipient). In this case, of course, it is just like any other signal. I wonder if there are commercial systems out on which this actually does work? It's documented in our POSIX manuals...