Need help generating SIGIO on a unix socket

Need help generating SIGIO on a unix socket

Post by Costel » Fri, 18 Jan 1991 22:23:09

Hello, I am trying to set up a unix socket such that a SIGIO signal is
automatically generated when data arrives on the socket. I have tried
the following:

        s = socket(AF_UNIX, SOCK_STREAM, 0);
        fcntl(s, F_SETOWN, getpid());

This, however, does not seem to work, i.e. the signal handler that I have
set up does not catch the SIGIO signal. (I know that the signal handler
is working properly and I know that I am getting data on the socket.) I am
doing this on an Apple IIx running A/UX 1.1. Any ideas? Please e-mail to


1. When does an HP-UX 8.0 socket generate SIGIOs?

I don't know which of these 3 groups this question is appropriate to, so
*PLEASE* accept my humble apologies if I'm wasting your time.

I have a socket on an HP 9000/720 running HP-UX 8.05. It has been set up
to recieve SIGIOs. It *SEEMS* that
1) a SIGIO interupt is delivered every time a send is done for the socket
   (and select indicates that the socket is ready for writing only)
2) if the SIGIO-handler recvs from that socket, and then sends on that
   socket, then *TWO* SIGIOs are delivered (select indicates socket ready
   for writing both times).

Is this expected behaviour? Why could this be occuring? Is there any way
of having a SIGIO delivered only on a reciept of a packet?



2. GRUB crashing after kernel recompile

3. Generating SIGIO's in sockets

4. PROBLEM:can't seek to /dev/sdb

5. Need to get SIGIO for socket when data available.

6. sed and '/' to '\/' conversion.

7. Need to generate visualization tree for Unix--PLease help!

8. Barbara Hershey

9. Signals: how is a SIGIO generated

10. Which events generate SIGIO ?

11. generating SIGIO/SIGPOLL in linux?

12. help needed: use SIGIO to trap RPC message

13. SIGIO: Is it possible to use SIGIO for named pipes?