Skip to content

Instantly share code, notes, and snippets.

@hirose31
Created July 13, 2009 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hirose31/146057 to your computer and use it in GitHub Desktop.
Save hirose31/146057 to your computer and use it in GitHub Desktop.
diff -uNr keepalived-1.1.17.orig/keepalived/core/main.c keepalived-1.1.17/keepalived/core/main.c
--- keepalived-1.1.17.orig/keepalived/core/main.c 2009-03-05 17:26:39.000000000 +0900
+++ keepalived-1.1.17/keepalived/core/main.c 2009-04-14 14:10:16.000000000 +0900
@@ -335,8 +335,8 @@
if (!pidfile_write(main_pidfile, getpid()))
goto end;
} else {
- if (!pidfile_write((daemon_mode & 1) ? vrrp_pidfile :
- checkers_pidfile, getpid()))
+ if (!pidfile_write((daemon_mode & 1) ? KEEPALIVED_VRRP_PID_FILE :
+ KEEPALIVED_CHECKERS_PID_FILE, getpid()))
goto end;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment