SIGIO on a udp socket - how should I do? (4.3BSD)

Trevor Cotton trevc at moosehead.mips.com
Sat Mar 30 04:25:31 AEST 1991


In article <1264 at anprda.atson.asahi-np.co.jp>,
akira at atson.asahi-np.co.jp (Akira Takiguchi) writes:
> 
>      I'm writing an application which use sunrpc[udp] for interprocess
> communication.  Since I need asynchronous processing, I tried to set
> FASYNC flag on the udp socket but no SIGIO seems to be delivered when
> request arrives.  Is there something I should do to get SIGIO properly?
> 
>      I'm on a MIPS RS3230 with RISC/OS 4.51, bsd43 world.
> 
>      Thanks in advance,  (No email, please;  sorry for inconvenience)
> -- 
>        |    Akira Takiguchi  at ATSON, Inc. (a subsidiary of the Asahi
Shimbun)
>        |                WAKO GINZA bldg.  8-10-4 Ginza Chuo-ku Tokyo
104  Japan
>        | Phone +81 3 3289 7051  Fax +81 3 3289 7066  SORRY, EMAIL NOT
AVAILABLE

Did you set the process ID or process group ID that you want the SIGIO 
delivered to?

e.g 

fcntl(fd, F_SETOWN, getpid());

If this has been done, then try using the ioctl instead :-

int onoff = 1;
ioctl(fd, FIOASYNC, (char *)&onoff);



More information about the Comp.unix.questions mailing list