Message ID | 1426509425-15978-13-git-send-email-hare@suse.de (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | christophe varoqui |
Headers | show |
diff --git a/multipathd/main.c b/multipathd/main.c index 4f02211..3e22ad1 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -2056,6 +2056,7 @@ main (int argc, char *argv[]) if (!isatty(fileno(stdout))) setbuf(stdout, NULL); err = 0; + daemon_pid = getpid(); } else err = daemonize();
When running in debug mode the PID is not set, causing the PID in the pidfile to always be set to '0'. Signed-off-by: Hannes Reinecke <hare@suse.de> --- multipathd/main.c | 1 + 1 file changed, 1 insertion(+)