* NEWS, src/newgrp.c: Return the exit status of the child. Thanks
to Lionel Elie Mamane.
This commit is contained in:
parent
2e075ad91b
commit
f596cd113c
@ -347,7 +347,8 @@ static void syslog_sg (const char *name, const char *group)
|
|||||||
(unsigned long) gid, name));
|
(unsigned long) gid, name));
|
||||||
}
|
}
|
||||||
closelog ();
|
closelog ();
|
||||||
exit (E_SUCCESS);
|
exit ((0 != WIFEXITED (cst)) ? WEXITSTATUS (cst)
|
||||||
|
: WTERMSIG (cst) + 128);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* child - restore signals to their default state */
|
/* child - restore signals to their default state */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user