From: Lennart Poettering Date: Fri, 22 Mar 2013 14:05:51 +0000 (+0100) Subject: main: minor simplification X-Git-Tag: v199~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab4224458bf32d0e733f8e74b34414635389acc1;p=thirdparty%2Fsystemd.git main: minor simplification --- diff --git a/src/core/main.c b/src/core/main.c index 05f0803b8bb..25f55fced23 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1573,10 +1573,9 @@ int main(int argc, char *argv[]) { /* Make sure we leave a core dump without panicing the * kernel. */ - if (getpid() == 1) + if (getpid() == 1) { install_crash_handler(); - if (getpid() == 1) { r = mount_cgroup_controllers(arg_join_controllers); if (r < 0) goto finish;