1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 18:55:09 +03:00

execute: fix typo

This commit is contained in:
Lennart Poettering 2010-05-22 04:39:16 +02:00
parent 7535cc788e
commit 1b91d3e8f4
3 changed files with 8 additions and 6 deletions

View File

@ -783,10 +783,12 @@ int exec_spawn(ExecCommand *command,
/* child */ /* child */
/* We reset exactly these two signals, since they are /* We reset exactly these signals, since they are the
* the only ones we set to SIG_IGN in the main * only ones we set to SIG_IGN in the main daemon. All
* daemon. All others */ * others we leave untouched because we set them to
default_signals(SIGNALS_CRASH_HANLDER, * SIG_DFL or a valid handler initially, both of which
* will be demoted to SIG_DFL. */
default_signals(SIGNALS_CRASH_HANDLER,
SIGNALS_IGNORE, -1); SIGNALS_IGNORE, -1);
if (sigemptyset(&ss) < 0 || if (sigemptyset(&ss) < 0 ||

View File

@ -42,7 +42,7 @@ struct CGroupBonding;
#define LOGGER_SOCKET "/org/freedesktop/systemd1/logger" #define LOGGER_SOCKET "/org/freedesktop/systemd1/logger"
/* This doesn't really belong here, but I couldn't find a better place to put this. */ /* This doesn't really belong here, but I couldn't find a better place to put this. */
#define SIGNALS_CRASH_HANLDER SIGSEGV,SIGILL,SIGFPE,SIGBUS,SIGQUIT,SIGABRT #define SIGNALS_CRASH_HANDLER SIGSEGV,SIGILL,SIGFPE,SIGBUS,SIGQUIT,SIGABRT
#define SIGNALS_IGNORE SIGKILL,SIGPIPE #define SIGNALS_IGNORE SIGKILL,SIGPIPE
typedef enum ExecInput { typedef enum ExecInput {

View File

@ -165,7 +165,7 @@ static void install_crash_handler(void) {
sa.sa_handler = crash; sa.sa_handler = crash;
sa.sa_flags = SA_NODEFER; sa.sa_flags = SA_NODEFER;
sigaction_many(&sa, SIGNALS_CRASH_HANLDER, -1); sigaction_many(&sa, SIGNALS_CRASH_HANDLER, -1);
} }
static int make_null_stdio(void) { static int make_null_stdio(void) {