Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jc@sppip7.lkg.dec.com (John Chambers)
Subject: Re: Does SIGIO work with FIFOs in Ultrix 4.2?
Date: 4 May 92 20:19:37 GMT	[thread overview]
Message-ID: <1992May4.201937.5553@nntpd.lkg.dec.com> (raw)
In-Reply-To: 1992Apr29.195901.10309@nntpd.lkg.dec.com

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...


      reply	other threads:[~1992-05-04 20:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1992Apr28.143220.7221@nntpd.lkg.dec.com>
1992-04-29 19:59 ` Does SIGIO work with FIFOs in Ultrix 4.2? John Chambers
1992-05-04 20:19   ` John Chambers [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox