I_SETSIG on solaris

Randy Chapman (chapman@cs.washington.edu)
Thu, 9 Nov 1995 09:35:29 -0800 (PST)


with the following little block of code on solaris, one can set the
system to send you a signal when there is data waiting on an fd
(presumably a socket or terminal-type device)

ioctl(desc, I_SETSIG, S_INPUT | S_OUTPUT);

is there any equivalent under linux ? I need to yield to other threads
within the process while waiting, so blocking is not an option =(

thanks,
--randy