Fix signal handler race condition.

This commit is contained in:
dg 1997-01-28 07:06:54 +00:00
parent 41a5f91245
commit 3d55397795

View File

@ -1644,6 +1644,11 @@ void
dologout(status)
int status;
{
/*
* Prevent reception of SIGURG from resulting in a resumption
* back to the main program loop.
*/
transflag = 0;
if (logged_in) {
(void) seteuid((uid_t)0);