- Timestamp:
- 06/02/04 23:51:14 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 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 : -
pykota/trunk/pykota/accounters/software.py
r1495 r1514 22 22 # 23 23 # $Log$ 24 # Revision 1.4 2004/06/02 21:51:14 jalet 25 # Moved the sigterm capturing elsewhere 26 # 24 27 # Revision 1.3 2004/05/24 22:45:49 jalet 25 28 # New 'enforcement' directive added … … 71 74 retcode = child.wait() 72 75 except OSError, msg : 73 self.filter.logger.log_message(_("Problem while waiting for software accounter pid %s to exit ") % child.pid)76 self.filter.logger.log_message(_("Problem while waiting for software accounter pid %s to exit : %s") % (child.pid, msg)) 74 77 else : 75 78 if os.WIFEXITED(retcode) : -
pykota/trunk/pykota/tool.py
r1512 r1514 22 22 # 23 23 # $Log$ 24 # Revision 1.93 2004/06/02 21:51:02 jalet 25 # Moved the sigterm capturing elsewhere 26 # 24 27 # Revision 1.92 2004/06/02 13:21:38 jalet 25 28 # Debug message added … … 810 813 self.exportJobInfo() 811 814 self.jobdatastream = self.openJobDataStream() 815 self.logdebug("Capturing SIGTERM events.") 816 signal.signal(signal.SIGTERM, self.sigterm_handler) 812 817 813 818 def openJobDataStream(self) :