Re: [PATCH] thread wakeup fix for 2.4.0-test7

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon Aug 28 2000 - 17:28:59 EST


> The close() function will deallocate the file descriptor
> indicated by fildes. To deallocate means to make the file
> descriptor available for return by subsequent calls to open()
> or other functions that allocate file descriptors.
>
> So we could sleep in close (forever, maybe) until the polls are
> finished if you prefer.
>
> close doesn't close. This would be a ``bug'', Linus.

Nope. The fd can be closed and a new one opened while the poll sleeps on the
existing one. The current code is compliant

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



This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:22 EST