Changeset 1492 for pykota/trunk/bin
- Timestamp:
- 05/22/04 00:02:53 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r1484 r1492 24 24 # 25 25 # $Log$ 26 # Revision 1.46 2004/05/21 22:02:51 jalet 27 # Preliminary work on pre-accounting 28 # 26 29 # Revision 1.45 2004/05/19 07:15:32 jalet 27 30 # Could the 'misterious' bug in my loop be finally fixed ??? … … 381 384 killed = 0 382 385 status = -1 386 self.logdebug("Catching SIGTERM.") 387 signal.signal(signal.SIGTERM, self.sigterm_handler) 383 388 self.logdebug("Entering streams polling loop...") 384 389 while status == -1 : … … 459 464 460 465 self.logdebug("Exiting streams polling loop...") 466 467 self.logdebug("Ignoring SIGTERM again.") 468 signal.signal(signal.SIGTERM, signal.SIG_IGN) 469 461 470 status = subprocess.wait() # just in case 462 471 if os.WIFEXITED(status) : … … 528 537 except (TypeError, NameError, AttributeError) : 529 538 pass 539 540 kotabackend.closeJobDataStream() 530 541 531 542 sys.exit(retcode)