public inbox for
help / color / mirror / Atom feed
Subject: LVM2/libdaemon/server daemon-server.c
Date: Fri, 16 Mar 2012 21:30:00 -0000	[thread overview]
Message-ID: <> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	2012-03-16 21:30:54

Modified files:
	libdaemon/server: daemon-server.c 

Log message:
	Do exit if LISTEN_PID environment variable not correct during systemd handover.


--- LVM2/libdaemon/server/daemon-server.c	2012/03/14 15:51:52	1.5
+++ LVM2/libdaemon/server/daemon-server.c	2012/03/16 21:30:53	1.6
@@ -177,7 +177,7 @@
 	env_pid = strtoul(e, &p, 10);
 	if (errno || !p || *p || env_pid <= 0 ||
 	    getpid() != (pid_t) env_pid)
-		;
+		goto out;
 	/* LISTEN_FDS must be 1 and the fd must be a socket! */
 	if (!(e = getenv(SD_LISTEN_FDS_ENV_VAR_NAME)))

             reply	other threads:[~2012-03-16 21:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-16 21:30 prajnoha [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-03-08 14:54 prajnoha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).