浏览代码

changed the code to also terminate the process if it is not run as daemon

Helmut Pozimski 11 年之前
父节点
当前提交
ec052f3453
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      stdd

+ 1 - 0
stdd

@@ -58,6 +58,7 @@ def sighandler(signum, frame):
 		else:
 			logger.error("stopping daemon failed, PID file was not deleted!")
 			sys,exit(1)
+	sys.exit(0)
 	
 """ create the configuration object according to the given parameters and
 read the file itself