summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-07 03:18:35 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-07 03:18:35 +0200
commitd89e521eadeccc17fd10b574106c0fcd9e9f9340 (patch)
treeff2afca5dca9f86bd2b41ec2414534923e9fb895 /main.c
parent004e33b632f34c9cd802347003563d566392678f (diff)
main: fail if we cannot mount /cgroup/debug
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 712c797283..397e868e97 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);