[dm-devel] [PATCH 12/78] multipathd: set correct PID when running in debug mode
Hannes Reinecke
hare at suse.de
Mon Mar 16 12:35:59 UTC 2015
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 at suse.de>
---
multipathd/main.c | 1 +
1 file changed, 1 insertion(+)
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();
--
1.8.4.5
More information about the dm-devel
mailing list