Re: Query on UDP Sockets on Linux.

From: Andi Kleen (ak@suse.de)
Date: Mon Jun 26 2000 - 07:54:09 EST


On Mon, Jun 26, 2000 at 01:46:47PM +0100, Alan Cox wrote:
> I dont even think there is a bug here.
>
> Thread 1 closes the file handle
> Thread 2 has it locked open until recvmsg() returns
>
> Then it closes.
>
> Probably thread1 needs to send thread2 a signal

close on any file handle should send the shutdown flag and wake up all
sleepers (and it does in 2.2.16). the sleepers notice shutdown and
error out.

-Andi

-
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 : Mon Jun 26 2000 - 21:00:08 EST