From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Reinecke Subject: [PATCH 12/78] multipathd: set correct PID when running in debug mode Date: Mon, 16 Mar 2015 13:35:59 +0100 Message-ID: <1426509425-15978-13-git-send-email-hare@suse.de> References: <1426509425-15978-1-git-send-email-hare@suse.de> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1426509425-15978-1-git-send-email-hare@suse.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Christophe Varoqui Cc: dm-devel@redhat.com List-Id: dm-devel.ids 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 --- 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