Changeset 1514 for pykota/trunk/bin
- Timestamp:
- 06/02/04 23:51:14 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r1513 r1514 24 24 # 25 25 # $Log$ 26 # Revision 1.56 2004/06/02 21:50:56 jalet 27 # Moved the sigterm capturing elsewhere 28 # 26 29 # Revision 1.55 2004/06/02 14:25:07 jalet 27 30 # Should correctly capture ALL errors now … … 463 466 endinput = 1 464 467 465 self.logdebug("Capturing SIGTERM events.")466 signal.signal(signal.SIGTERM, self.sigterm_handler)467 468 468 self.logdebug("Entering streams polling loop...") 469 469 MEGABYTE = 1024*1024 … … 480 480 os.kill(subprocess.pid, signal.SIGTERM) 481 481 except OSError, msg : # ignore but logs if process was already killed. 482 self.logdebug("Error while sending signal to pid %s " % subprocess.pid)482 self.logdebug("Error while sending signal to pid %s : %s" % (subprocess.pid, msg)) 483 483 else : 484 484 self.logger.log_message(_("SIGTERM was sent to real backend %s (pid: %s)") % (realbackend, subprocess.pid), "info") … … 591 591 self.logdebug("Exiting streams polling loop...") 592 592 593 self.logdebug("Ignoring SIGTERM again.")594 signal.signal(signal.SIGTERM, signal.SIG_IGN)595 596 593 # Check exit code of original CUPS backend. 597 594 if status == -1 :