-make main thread not exit after spawning new processes

This commit is contained in:
martin 2011-06-28 13:38:34 -04:00
parent e8c36be242
commit 3b6723246f
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ try:
notifier.loop(daemonize=True, callback=pe.notifier_loop_callback, pid_file='/var/run/airtime-notifier.pid', stdout='/var/log/airtime/media-monitor/media-monitor.log') notifier.loop(daemonize=True, callback=pe.notifier_loop_callback, pid_file='/var/run/airtime-notifier.pid', stdout='/var/log/airtime/media-monitor/media-monitor.log')
for p in processes:
p.join()
except KeyboardInterrupt: except KeyboardInterrupt:
notifier.stop() notifier.stop()
except Exception, e: except Exception, e: