From owner-freebsd-questions Sun Aug 18 14:49:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67D8937B400 for ; Sun, 18 Aug 2002 14:49:23 -0700 (PDT) Received: from cs78135006.pp.htv.fi (cs78135006.pp.htv.fi [62.78.135.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1166443E86 for ; Sun, 18 Aug 2002 14:49:20 -0700 (PDT) (envelope-from jau@cs78135006.pp.htv.fi) Received: (from jau@localhost) by cs78135006.pp.htv.fi (8.9.3/8.9.3/JAU-2.2) id AAA29911 for freebsd-questions@freebsd.org; Mon, 19 Aug 2002 00:49:17 +0300 (EEST) Message-Id: <200208182149.AAA29911@cs78135006.pp.htv.fi> Subject: O_ASYNC + SIGIO does not seem to work for UNIX domain sockets To: freebsd-questions@freebsd.org Date: Mon, 19 Aug 2002 00:49:17 +0300 (EET DST) Reply-To: jau@iki.fi From: jau@iki.fi (Jukka A. Ukkonen) Latin-Date: Lunti XIX August a.d. MMII Organization: Private person OS-Platform: FreeBSD 3.5.1-RELEASE i386 Phone: +358-9-6215280 (home) Content-Conversion: prohibited X-Mailer: ELM [version 2.4 PL25+pgp] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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