From 2c2884f80f582ad11486f643ab6a586cc7c85aea Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 15 Oct 2015 09:39:44 -0400 Subject: [PATCH] Fix pid file behavior on exit Previous change failed to correct the sense of the 'doexit' function. --- confluent_server/confluent/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/main.py b/confluent_server/confluent/main.py index bb0b58d5..0d867db2 100644 --- a/confluent_server/confluent/main.py +++ b/confluent_server/confluent/main.py @@ -121,7 +121,7 @@ def terminate(signalname, frame): def doexit(): - if havefcntl: + if not havefcntl: return pidfile = open('/var/run/confluent/pid') pid = pidfile.read()