1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-31 01:47:15 +03:00

main: minor simplification

This commit is contained in:
Lennart Poettering 2013-03-22 15:05:51 +01:00
parent 7d56679902
commit ab4224458b

View File

@ -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;