Skip to content

Commit

Permalink
squash w/ [7229] Run clang-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Dec 5, 2024
1 parent 826fa5e commit 568c88b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/main_server/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,27 +496,27 @@ Environment Variables:
auto daemonize() -> void
{
// Become a background process.
// clang-format off
switch (fork()) {
// clang-format off
case -1: _exit(1);
case 0: break;
default: _exit(0);
// clang-format on
}
// clang-format on

// Become session leader.
if (setsid() == -1) {
_exit(1);
}

// Make sure we aren't the session leader.
// clang-format off
switch (fork()) {
// clang-format off
case -1: _exit(1);
case 0: break;
default: _exit(0);
// clang-format on
}
// clang-format on

umask(0);

Expand Down

0 comments on commit 568c88b

Please sign in to comment.