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
|
else
|
||||||
{
|
{
|
||||||
ERR("Failed to start session");
|
PT("Failed to start session");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,7 @@ static void
|
||||||
_entrance_wait_action(int sig, siginfo_t * si __UNUSED__, void *data __UNUSED__)
|
_entrance_wait_action(int sig, siginfo_t * si __UNUSED__, void *data __UNUSED__)
|
||||||
{
|
{
|
||||||
kill_wait();
|
kill_wait();
|
||||||
if (sig != SIGCHLD)
|
setenv("ENTRANCE_QUIT", "1", 1);
|
||||||
setenv("ENTRANCE_QUIT", "1", 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -48,7 +47,6 @@ main (int argc __UNUSED__, char **argv __UNUSED__)
|
||||||
action.sa_sigaction = _entrance_wait_action;
|
action.sa_sigaction = _entrance_wait_action;
|
||||||
action.sa_flags = SA_RESTART | SA_SIGINFO;
|
action.sa_flags = SA_RESTART | SA_SIGINFO;
|
||||||
sigemptyset(&action.sa_mask);
|
sigemptyset(&action.sa_mask);
|
||||||
sigaction(SIGCHLD, &action, NULL);
|
|
||||||
sigaction(SIGQUIT, &action, NULL);
|
sigaction(SIGQUIT, &action, NULL);
|
||||||
sigaction(SIGTERM, &action, NULL);
|
sigaction(SIGTERM, &action, NULL);
|
||||||
sigaction(SIGKILL, &action, NULL);
|
sigaction(SIGKILL, &action, NULL);
|
||||||
|
@ -64,9 +62,13 @@ main (int argc __UNUSED__, char **argv __UNUSED__)
|
||||||
if ((errno == ECHILD) || (errno == EINVAL))
|
if ((errno == ECHILD) || (errno == EINVAL))
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
else if (rpid == _x_pid || rpid == spid)
|
else if (rpid == _x_pid)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
else if (rpid == spid)
|
||||||
|
{
|
||||||
|
kill_wait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue