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 03:24:52 +0100
User-agent: Mutt/1.5.12-2006-07-14

Carl Fredrik Hammar, le Sun 27 Dec 2009 20:56:21 +0100, a écrit :
> If the notification request is canceled before auth_user_authenticate
> returns there should be no problem.

I tried a crude

          error_t err2 = mach_port_request_notification(mach_task_self(), 
rendezvous, MACH_NOTIFY_DEAD_NAME, 0, MACH_PORT_NULL, 
MACH_MSG_TYPE_MAKE_SEND_ONCE, &old);

after the complete if (hurd_condition_wait (&s.wakeup, &pending_lock)
statement, with no luck: ext2fs got an EINTR anyway.

Samuel




reply via email to

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