-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

@ -66,6 +66,9 @@ try:
logger.info("wdd result %s", wdd[storage_directory])
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:
notifier.stop()