Hey, what about SIGIO?

Tony Rems rembo at unisoft.UUCP
Fri Sep 28 09:19:47 AEST 1990


In article <LUSH.90Sep26102017 at athena0.EE.MsState.Edu> lush at EE.MsState.Edu (Edward Luke) writes:
>
>In signal.h there is a signal defined as:
>#define        SIGIO   23      /* input/output possible signal */
>
>
>I have an application that will be doing computations, asynchronously
>with this I would like to get a signal when new data arrives on an
>input file descriptor, or when an output file descriptor is free to be
>filled again.  Is it possible for me to do this without using fork()
>to start another process to monitor the file descriptor?  Can I tell
>the OS to give me a SIGIO when there is a pending condition on a
>socket?  Just what is the SIGIO signal for?
>

Try the select(2) system call on BSD or SVR4 or the poll(2) system
call on any SVR3 or greater and this should do what you want.

-Tony


-----------------------------------------------------

Somedays, it doesn't pay to get out of bed.

NOTE: My opinions are barely my own much less 
my employers'.

-----------------------------------------------------



More information about the Comp.unix.programmer mailing list