bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reauthentication implementation flaw due to EINTR


From: Samuel Thibault
Subject: Re: Reauthentication implementation flaw due to EINTR
Date: Mon, 28 Dec 2009 11:10:05 +0100
User-agent: Mutt/1.5.12-2006-07-14

Da Zheng, le Mon 28 Dec 2009 17:58:47 +0800, a écrit :
> On 09-12-27 上午1:47, Carl Fredrik Hammar wrote:
> > Is it the code below from S_auth_server_authenticate the problem?
> > 
> >   /* Store the new port and wait for the user RPC to wake us up.  */
> >   s.passthrough = newport;
> >   condition_init (&s.wakeup);
> >   ports_interrupt_self_on_port_death (serverauth, rendezvous);
> The reason we need this is to avoid this thread hangs forever if the client
> somehow dies?

Yes.

Samuel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]