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:
parent
7d56679902
commit
ab4224458b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user