Remove unused signal handler
This commit is contained in:
parent
a8366fe00f
commit
8ee47e36e3
|
@ -14,7 +14,6 @@ stateFile = 'www/garage.json'
|
|||
|
||||
|
||||
def main():
|
||||
signal(SIGTERM, cleanExit())
|
||||
config = ConfigParser()
|
||||
config.read('garage.cfg')
|
||||
eastPin = config['garage'].getint('east-pin')
|
||||
|
@ -64,12 +63,5 @@ def persistState():
|
|||
json.dump(state, file)
|
||||
|
||||
|
||||
def cleanExit():
|
||||
def _exit_(signum, frame):
|
||||
sys.exit(0)
|
||||
|
||||
return _exit_
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue