]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Return SS_RC_INITIALIZATION_FAILED if pid file exists
authorAdrian-Ken Rueegsegger <ken@codelabs.ch>
Wed, 23 Jan 2013 14:38:28 +0000 (15:38 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 23 Jan 2013 14:59:21 +0000 (15:59 +0100)
Let charon return SS_RC_INITIALIZATION_FAILED if an existing pid file is found.
Starter only terminates itself if the result code of the daemon is a valid
SS_RC_* value.

src/charon/charon.c

index c301874c8db425c6b6e3e27f7efda5e1f18883c0..f4bd27d342418d188c9398805981d09ad3e53863 100644 (file)
@@ -401,7 +401,6 @@ int main(int argc, char *argv[])
        if (check_pidfile())
        {
                DBG1(DBG_DMN, "charon already running (\""PID_FILE"\" exists)");
-               status = -1;
                goto deinit;
        }