entrance_wait: kill server if session was killed.

devs/bu5hm4n/session_bug
Marcel Hollerbach 7 years ago
parent cecdf152c7
commit 358b445c22
  1. 8
      src/daemon/entrance_wait.c

@ -62,9 +62,13 @@ main (int argc __UNUSED__, char **argv __UNUSED__)
if ((errno == ECHILD) || (errno == EINVAL))
return -1;
}
else if (rpid == _x_pid || rpid == spid)
else if (rpid == _x_pid)
{
break;
break;
}
else if (rpid == spid)
{
kill_wait();
}
}

Loading…
Cancel
Save