I am trying the following code
.
signal(SIGIO,handler);
.
.
s = accept(.....) ;
fcntl(s , F_SETOWN , getpid());
fcntl(s , F_SETFL , FASYNC ) ;
.
.
.
When any process connects and sends any data I must read from s for
receive it . I do this in handler . But NO signals are generated .
Any ideas why ? and what I must to do for successiful generation of the signal ?
I have Ultrix 4.2 .
Thanks .
--
===========================================================================
ISRAEL , Haifa , Technion
Canada Dorm. 31/2/3
phone : 04-29-4643
===========================================================================