From ab4224458bf32d0e733f8e74b34414635389acc1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 22 Mar 2013 15:05:51 +0100 Subject: [PATCH 1/1] main: minor simplification --- src/core/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/main.c b/src/core/main.c index 05f0803b8..25f55fced 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; -- 2.30.2