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

2001-06-07 Thread Alexander Viro
On 7 Jun 2001, Florian Weimer wrote: > There's a subtle difference: For malloc(), libc has a mutex (or > whatever), but for open(), socket() etc., no locking is performed, and > many libc functions create (and destroy) descriptors imlicitely. So? You don't have to close() descriptors you had

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

2001-06-06 Thread Alexander Viro
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 case, therefore causing the select to ret