Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
libgnomesu.1421
libgnomesu-exit-with-parent.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libgnomesu-exit-with-parent.patch of Package libgnomesu.1421
Index: libgnomesu-1.0.0/pam-backend/pam.c =================================================================== --- libgnomesu-1.0.0.orig/pam-backend/pam.c +++ libgnomesu-1.0.0/pam-backend/pam.c @@ -374,9 +374,21 @@ main (int argc, char *argv[]) fclose (inf); fclose (outf); outf = NULL; - waitpid (pid, &status, 0); - exitCode = WEXITSTATUS (status); - break; + for (;;) { + /* Exit if child dies */ + if (waitpid (pid, &status, WNOHANG) != 0) + { + exitCode = WEXITSTATUS (status); + break; + } + + /* Exit if parent dies */ + if (getppid () == 1) + break; + + sleep (1); + } + break; } pam_close_session (pamh, 0); if (setcred)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor