Show
Ignore:
Timestamp:
05/22/04 00:02:53 (20 years ago)
Author:
jalet
Message:

Preliminary work on pre-accounting

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1484 r1492  
    2424# 
    2525# $Log$ 
     26# Revision 1.46  2004/05/21 22:02:51  jalet 
     27# Preliminary work on pre-accounting 
     28# 
    2629# Revision 1.45  2004/05/19 07:15:32  jalet 
    2730# Could the 'misterious' bug in my loop be finally fixed ??? 
     
    381384        killed = 0 
    382385        status = -1 
     386        self.logdebug("Catching SIGTERM.") 
     387        signal.signal(signal.SIGTERM, self.sigterm_handler) 
    383388        self.logdebug("Entering streams polling loop...") 
    384389        while status == -1 : 
     
    459464                 
    460465        self.logdebug("Exiting streams polling loop...") 
     466         
     467        self.logdebug("Ignoring SIGTERM again.") 
     468        signal.signal(signal.SIGTERM, signal.SIG_IGN) 
     469         
    461470        status = subprocess.wait()      # just in case 
    462471        if os.WIFEXITED(status) : 
     
    528537        except (TypeError, NameError, AttributeError) :     
    529538            pass 
     539             
     540        kotabackend.closeJobDataStream()     
    530541         
    531542    sys.exit(retcode)