Compare commits
3 Commits
master
...
devs/bu5hm
Author | SHA1 | Date |
---|---|---|
Marcel Hollerbach | 358b445c22 | |
Marcel Hollerbach | cecdf152c7 | |
Marcel Hollerbach | e8e04b73d1 |
|
@ -194,7 +194,7 @@ _entrance_session_run(struct passwd *pwd, const char *cmd, const char *cookie)
|
|||
}
|
||||
else
|
||||
{
|
||||
ERR("Failed to start session");
|
||||
PT("Failed to start session");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ static void
|
|||
_entrance_wait_action(int sig, siginfo_t * si __UNUSED__, void *data __UNUSED__)
|
||||
{
|
||||
kill_wait();
|
||||
if (sig != SIGCHLD)
|
||||
setenv("ENTRANCE_QUIT", "1", 1);
|
||||
}
|
||||
|
||||
|
@ -48,7 +47,6 @@ main (int argc __UNUSED__, char **argv __UNUSED__)
|
|||
action.sa_sigaction = _entrance_wait_action;
|
||||
action.sa_flags = SA_RESTART | SA_SIGINFO;
|
||||
sigemptyset(&action.sa_mask);
|
||||
sigaction(SIGCHLD, &action, NULL);
|
||||
sigaction(SIGQUIT, &action, NULL);
|
||||
sigaction(SIGTERM, &action, NULL);
|
||||
sigaction(SIGKILL, &action, NULL);
|
||||
|
@ -64,10 +62,14 @@ 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;
|
||||
}
|
||||
else if (rpid == spid)
|
||||
{
|
||||
kill_wait();
|
||||
}
|
||||
}
|
||||
|
||||
if (WIFEXITED(status) && WEXITSTATUS(status))
|
||||
|
|
Loading…
Reference in New Issue