Date: Mon, 19 Aug 2002 00:49:17 +0300 (EET DST) From: jau@iki.fi (Jukka A. Ukkonen) To: freebsd-questions@freebsd.org Subject: O_ASYNC + SIGIO does not seem to work for UNIX domain sockets Message-ID: <200208182149.AAA29911@cs78135006.pp.htv.fi>
next in thread | raw e-mail | index | archive | help
Hi all, Has anyone experienced the same problem as I seem to have noticed? I tried using O_ASYNC fcntl flag and a SIGIO handler to find out when a UNIX domain socket has got something to read while my code has bee sitting in sigsuspend(). The SIGIO patently *never* arrives, though a lot data has been written to the other end of the socket. While sitting in the same sigsuspend() SIGINT, SIGTERM, and SIGCHLD all get delivered as they should. So, it seems that this is somehow related to the UNIX domain sockets only. If you have seen the O_ASYNC/FIOASYNC + SIGIO working with Internet sockets or terminal lines, it means nothing in my case. I have seen this happen only with the UNIX domain sockets. Any information, similar experiences, or bug fixes would be very welcome. Cheers, // jau .--- ..- -.- -.- .- .- .-.-.- ..- -.- -.- --- -. . -. / Jukka A. Ukkonen, Mawit Ltd, Finland /__ M.Sc. (sw-eng & cs) (Phone) +358-500-606-671 / Internet: Jukka.Ukkonen(a)Mawit.Com (Home) +358-9-6215-280 / Internet: ukkonen(a)nic.funet.fi v Internet: jau(a)iki.fi + + + + My opinions are mine and mine alone, not my employers. + + + + To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208182149.AAA29911>