projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25f17e4
)
manager: do not set up signals in test mode
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 25 Dec 2015 05:24:16 +0000
(
00:24
-0500)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 25 Dec 2015 05:24:16 +0000
(
00:24
-0500)
When we are running in test mode, we don't expect any signals.
In fact ^C should end the program. This also avoids permission
issues when running systemd-analyze verify.
src/core/manager.c
patch
|
blob
|
history
diff --git
a/src/core/manager.c
b/src/core/manager.c
index
34dd715
..
8256384
100644
(file)
--- a/
src/core/manager.c
+++ b/
src/core/manager.c
@@
-410,6
+410,9
@@
static int manager_setup_signals(Manager *m) {
assert(m);
+ if (m->test_run)
+ return 0;
+
assert_se(sigaction(SIGCHLD, &sa, NULL) == 0);
/* We make liberal use of realtime signals here. On