summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-12-22 21:21:09 +0100
committerLennart Poettering <lennart@poettering.net>2012-12-22 22:17:58 +0100
commit57cb4adf4ed61ab9eeb7f190f94d700a56bafad0 (patch)
treea2082f8fe28a5c4e4cbab2d40ef717ca3f6d3c67 /src/core
parent01e10de3c2b9c2944bd86b12fab83d1164d0b64a (diff)
nspawn: try to orderly shutdown container when receiving SIGTERM
Diffstat (limited to 'src/core')
-rw-r--r--src/core/manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index ac11ce1806..a3839e1538 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -1176,7 +1176,8 @@ static int manager_process_signal_fd(Manager *m) {
assert(m);
for (;;) {
- if ((n = read(m->signal_watch.fd, &sfsi, sizeof(sfsi))) != sizeof(sfsi)) {
+ n = read(m->signal_watch.fd, &sfsi, sizeof(sfsi));
+ if (n != sizeof(sfsi)) {
if (n >= 0)
return -EIO;