RE: PROBLEM: I/O system call never returns if file desc is closed in the

2001-06-07 Thread David Schwartz
> At 22:35 +0100 2001-06-06, Alan Cox wrote: > > > This report describes a problem in the usage of file > > > descriptors across > >> multiple threads. When one thread closes a file descriptor, another > >> thread which waits for an I/O on that file descriptor is not notified > >> and

Re: PROBLEM: I/O system call never returns if file desc is closed in the

2001-06-07 Thread Florian Weimer
Alexander Viro <[EMAIL PROTECTED]> writes: > On 7 Jun 2001, Florian Weimer wrote: > > > Matthias Urlichs <[EMAIL PROTECTED]> writes: > > > > > Select is defined as to return, with the appropriate bit set, if/when > > > a nonblocking read/write on the file descriptor won't block. You'd get > >

Re: PROBLEM: I/O system call never returns if file desc is closed in the

2001-06-07 Thread Florian Weimer
Alexander Viro [EMAIL PROTECTED] writes: On 7 Jun 2001, Florian Weimer wrote: Matthias Urlichs [EMAIL PROTECTED] writes: Select is defined as to return, with the appropriate bit set, if/when a nonblocking read/write on the file descriptor won't block. You'd get EBADF in this

RE: PROBLEM: I/O system call never returns if file desc is closed in the

2001-06-07 Thread David Schwartz
At 22:35 +0100 2001-06-06, Alan Cox wrote: This report describes a problem in the usage of file descriptors across multiple threads. When one thread closes a file descriptor, another thread which waits for an I/O on that file descriptor is not notified and blocks forever.

Re: PROBLEM: I/O system call never returns if file desc is closed in the

2001-06-06 Thread Florian Weimer
Matthias Urlichs <[EMAIL PROTECTED]> writes: > Select is defined as to return, with the appropriate bit set, if/when > a nonblocking read/write on the file descriptor won't block. You'd get > EBADF in this case, therefore causing the select to return would be a > Good Thing. How do you avoid

PROBLEM: I/O system call never returns if file desc is closed in the meantime

2001-06-06 Thread thierry . lelegard
[1.] I/O system call never returns if file desc is closed in the meantime [2.] Full description of the problem/report: This report describes a problem in the usage of file descriptors across multiple threads. When one thread closes a file descriptor, another thread which waits for an I/O on

PROBLEM: I/O system call never returns if file desc is closed in the meantime

2001-06-06 Thread thierry . lelegard
[1.] I/O system call never returns if file desc is closed in the meantime [2.] Full description of the problem/report: This report describes a problem in the usage of file descriptors across multiple threads. When one thread closes a file descriptor, another thread which waits for an I/O on

Re: PROBLEM: I/O system call never returns if file desc is closed in the

2001-06-06 Thread Florian Weimer
Matthias Urlichs [EMAIL PROTECTED] writes: Select is defined as to return, with the appropriate bit set, if/when a nonblocking read/write on the file descriptor won't block. You'd get EBADF in this case, therefore causing the select to return would be a Good Thing. How do you avoid race