Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created November 19, 2015 15:55
Show Gist options
  • Select an option

  • Save kaworu/15278e6886f6f53672ab to your computer and use it in GitHub Desktop.

Select an option

Save kaworu/15278e6886f6f53672ab to your computer and use it in GitHub Desktop.
--- src/main.c.origin 2015-11-19 16:53:19.341274000 +0100
+++ src/main.c 2015-11-19 16:53:25.569655000 +0100
@@ -283,13 +283,13 @@
msg_warn ("main: cannot start reload thread, ignoring error");
}
- if (smfi_opensocket(true) == MI_FAILURE) {
- msg_err("Unable to open listening socket");
+ if (daemonize && daemon (0, 0) == -1) {
+ msg_err("Unable to daemonize");
exit(EX_UNAVAILABLE);
}
- if (daemonize && daemon (0, 0) == -1) {
- msg_err("Unable to daemonize");
+ if (smfi_opensocket(true) == MI_FAILURE) {
+ msg_err("Unable to open listening socket");
exit(EX_UNAVAILABLE);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment