chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
main: when ignoring a signal set SA_RESTART
[elogind.git]
/
main.c
diff --git
a/main.c
b/main.c
index 0eb64d265928e918b61e0797ebd825ed0b365ae6..3e2bfe10ca94b5ed384a9e6ca205d848c5de8e08 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-445,8
+445,8
@@
int main(int argc, char *argv[]) {
assert_se(reset_all_signal_handlers() == 0);
/* If we are init, we can block sigkill. Yay. */
assert_se(reset_all_signal_handlers() == 0);
/* If we are init, we can block sigkill. Yay. */
-
signal(SIGKILL, SIG_IGN
);
-
signal(SIGPIPE, SIG_IGN
);
+
ignore_signal(SIGKILL
);
+
ignore_signal(SIGPIPE
);
/* Close all open files */
assert_se(close_all_fds(NULL, 0) == 0);
/* Close all open files */
assert_se(close_all_fds(NULL, 0) == 0);