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

Akira Takiguchi akira at atson.asahi-np.co.jp
Sat Mar 30 23:06:26 AEST 1991


In article <1622 at spim.mips.COM> trevc at mips.com 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?
>
>Did you set the process ID or process group ID that you want the SIGIO 
>delivered to?

     I did;  the bug was in the "fork-to-become-daemon" code which failed
to set up new process group id correctly :-(.  I should have found it before
posting...  Anyway, thank you very much for your advice;  now everything
works fine.
-- 
       |    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



More information about the Comp.unix.questions mailing list