#17: pam_unix waitpid on unix_chkpwd child should retry on EINTR
---------------------+------------------------------
Reporter: ncw | Owner: pam-developers@…
Type: defect | Status: new
Priority: minor | Component: modules
Version: | Keywords:
Blocked By: | Blocking:
---------------------+------------------------------
Our application generates signals. A customer is seeing intermittent
authentication failures because the waitpid for the unix_chkpwd child
treats EINTR as an authentication failure.
See support.c:L624
https://git.fedorahosted.org/cgit/linux-
pam.git/tree/modules/pam_unix/support.c#n624
{{{
- rc=waitpid(child, &retval, 0);
+ while ((rc=waitpid(child, &retval, 0))<0 && errno == EINTR) ;
}}}
--
Ticket URL: <
https://fedorahosted.org/linux-pam/ticket/17>
linux-pam <
http://fedorahosted.org/linux-pam>
The Linux-PAM (Pluggable Authentication Modules) project