Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2002 10:19:11 +0200
From:      Gary Jennejohn <garyj@jennejohn.org>
To:        jau@iki.fi
Cc:        freebsd-questions@freebsd.org
Subject:   Re: O_ASYNC + SIGIO does not seem to work for UNIX domain sockets 
Message-ID:  <200208190819.g7J8JBPL084938@peedub.jennejohn.org>
In-Reply-To: Your message of "Mon, 19 Aug 2002 00:49:17 %2B0300." <200208182149.AAA29911@cs78135006.pp.htv.fi> 

next in thread | previous in thread | raw e-mail | index | archive | help
Jukka A. Ukkonen writes:
> 
> 	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.
> 

Since you didn't say I'll ask - did you do F_SETOWN on the socket ?

---
Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de


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?200208190819.g7J8JBPL084938>