Does any socket can produce SIGIO signal ?

Does any socket can produce SIGIO signal ?

Post by Dimitry Klop » Mon, 22 Nov 1993 04:02:24



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

================================================================================

 
 
 

Does any socket can produce SIGIO signal ?

Post by Dimitry Klop » Mon, 22 Nov 1993 04:09:24


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

================================================================================

 
 
 

1. Does any socket can produce SIGIO signal ?

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

================================================================================

2. SAMBA install & redhat 6

3. Telnet /Connection refused from Win95 to Linux

4. sockets: How to find origin of a SIGIO signal.

5. Creating links

6. modem help! slackware 96

7. Pb with SIGIO signal and sockets

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

9. Setting a Signal handler to signal the input on a socket

10. is SIGIO signal implemented on linux?

11. SIGIO Signal works fine under Linux, but not SunOS