From: Lennart Poettering Date: Wed, 7 Apr 2010 01:18:35 +0000 (+0200) Subject: main: fail if we cannot mount /cgroup/debug X-Git-Tag: 0.git+20100605+dfd8ee-1~233 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d89e521eadeccc17fd10b574106c0fcd9e9f9340;p=systemd main: fail if we cannot mount /cgroup/debug --- diff --git a/main.c b/main.c index 712c7972..397e868e 100644 --- a/main.c +++ b/main.c @@ -247,7 +247,8 @@ int main(int argc, char *argv[]) { /* Mount /proc, /sys and friends, so that /proc/cmdline and * /proc/$PID/fd is available. */ - mount_setup(); + if (mount_setup() < 0) + goto finish; /* Reset all signal handlers. */ assert_se(reset_all_signal_handlers() == 0);