]> sourceware.org Git - lvm2.git/commitdiff
Do exit if LISTEN_PID environment variable not correct during systemd handover.
authorPeter Rajnoha <prajnoha@redhat.com>
Fri, 16 Mar 2012 21:30:53 +0000 (21:30 +0000)
committerPeter Rajnoha <prajnoha@redhat.com>
Fri, 16 Mar 2012 21:30:53 +0000 (21:30 +0000)
libdaemon/server/daemon-server.c

index 3e72cd115b29b33c5d36d49b3787e288768ba007..099d9c0635c92bc85b0d6277f12d70e7f5385678 100644 (file)
@@ -177,7 +177,7 @@ static int _systemd_handover(struct daemon_state *ds)
        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)))
This page took 0.030215 seconds and 5 git commands to generate.