[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: All thread blocked on (accept socket)
From: |
Marius Vollmer |
Subject: |
Re: All thread blocked on (accept socket) |
Date: |
11 Mar 2002 20:30:46 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
Christopher Cramer <address@hidden> writes:
> On Tue, Mar 05, 2002 at 09:00:54PM +0000, Neil Jerram wrote:
> > Although your patch works for this case, I'm not sure it's the right
> > thing to change this in the C code.
> >
> > Firstly, one could argue that, with the current CVS code, the choice
> > of behaviours is good: if you _want_ the accept to block all threads,
> > just call `accept'; if you don't, call `select' first.
>
> I can't imagine why anyone would want to block all the threads on an
> accept. But if you did, I think it might be more intuitive to have a
> separate procedure (begin-critical-section or something).
Agreed. However, we should 'unblock' all syscalls in one go. Anyone?