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@xxxxxxx> --- 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 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel