Skip to content

Commit

Permalink
Try to avoid windows problems
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Sep 19, 2021
1 parent e220b8c commit 9b0bb1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/dird/dird.cc
Expand Up @@ -350,7 +350,9 @@ int main(int argc, char* argv[])
if (daemon_start()) {
CreatePidFile(me->pid_directory, "bareos-dir",
GetFirstPortHostOrder(me->DIRaddrs));
#if !defined(HAVE_WIN32)
exit(0);
#endif
}
InitStackDump(); /* grab new pid */
}
Expand Down
2 changes: 2 additions & 0 deletions core/src/filed/filed.cc
Expand Up @@ -238,7 +238,9 @@ int main(int argc, char* argv[])
if (daemon_start()) {
CreatePidFile(me->pid_directory, "bareos-fd",
GetFirstPortHostOrder(me->FDaddrs));
#if !defined(HAVE_WIN32)
exit(0);
#endif
}
InitStackDump(); /* set new pid */
}
Expand Down
2 changes: 2 additions & 0 deletions core/src/stored/stored.cc
Expand Up @@ -268,7 +268,9 @@ int main(int argc, char* argv[])
if (daemon_start()) {
CreatePidFile(me->pid_directory, "bareos-sd",
GetFirstPortHostOrder(me->SDaddrs));
#if !defined(HAVE_WIN32)
exit(0);
#endif
} /* become daemon */
InitStackDump(); /* pick up new pid */
}
Expand Down

0 comments on commit 9b0bb1f

Please sign in to comment.