Skip to content

Commit

Permalink
Revert "Bugfix: notice programs that die too fast on Python 3.5"
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Apr 16, 2016
1 parent 07f934d commit 40f3d2f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/zdaemon/zdrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,6 @@ def daemonize(self):
proc = None # Subprocess instance

def runforever(self):
sig_r, sig_w = os.pipe()
signal.set_wakeup_fd(sig_w)
self.logger.info("daemon manager started")
while self.should_be_up or self.proc.pid:
if self.should_be_up and not self.proc.pid and not self.delay:
Expand All @@ -391,7 +389,7 @@ def runforever(self):
self.delay = time.time() + self.backofflimit
if self.waitstatus:
self.reportstatus()
r, w, x = [self.mastersocket, sig_r], [], []
r, w, x = [self.mastersocket], [], []
if self.commandsocket:
r.append(self.commandsocket)
timeout = self.options.backofflimit
Expand Down Expand Up @@ -424,8 +422,6 @@ def runforever(self):
self.logger.exception("socket.error in doaccept(): %s"
% str(msg))
self.commandsocket = None
if sig_r in r:
os.read(sig_r, 1) # don't let the buffer fill up
self.logger.info("Exiting")
sys.exit(0)

Expand Down

0 comments on commit 40f3d2f

Please sign in to comment.