Fix signal handler race condition.

This commit is contained in:
David Greenman 1997-01-28 07:06:54 +00:00
parent 5f9a0f6762
commit 0b4df2eec2

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);