Re: Signals lost when using asynchronous IO

From: Dan Kegel (dank@alumni.caltech.edu)
Date: Wed Jul 12 2000 - 10:34:52 EST


Mikael Vidstedt wrote:
> No, I'm not using aio. I'm using the kernel supported asynchronous IO that
> sends signals through the net/socket.c:sock_wake_async() function in the
> kernel. No additional libraries or threads are used.
> ...
> There is no small test program to demonstrate the problem, I'm afraid. The
> application I'm writing is quite a bit too large. :(
>
> What the application does is to have about 200 concurrent connections
> from remote clients that are reading and writing data through sockets.
> When the remote end is shutting down, signals appear to get lost, because
> when I poll the remaining sockets, they have data left to be read, but no
> signal has been delivered...

So your program runs in the kernel? Is it a loadable module?

Can you try a different kernel, say Red Hat 6.2 or even 2.4.0-test3?
Who knows, maybe the Red Hat 6.0 kernel you're using has a bug that's
since been fixed...
- Dan

-- 
Entia non sunt multiplicanda praeter necessitatem.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:14 EST