From eabf2878eef49dc13c43afd22f321b765c5536f3 Mon Sep 17 00:00:00 2001 From: wangwenyan Date: Thu, 8 Mar 2018 16:32:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PriceSystem/CalcCmdReceiver.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/PriceSystem/CalcCmdReceiver.py b/PriceSystem/CalcCmdReceiver.py index d38f31f..6bad4f3 100644 --- a/PriceSystem/CalcCmdReceiver.py +++ b/PriceSystem/CalcCmdReceiver.py @@ -48,11 +48,6 @@ def format_cmd(cmd): if __name__ == "__main__": - pid_file = open("/var/run/price.sys.pid", "w") - pid_file.write(str(os.getpid())) - pid_file.flush() - pid_file.close() - pro_num = config.get_worker_num() pool = multiprocessing.Pool(processes=pro_num) pool.terminate() @@ -66,4 +61,4 @@ if __name__ == "__main__": break pool.join() if os.path.exists("/var/run/price.sys.stop"): - os.remove("/var/run/price.sys.stop") \ No newline at end of file + os.remove("/var/run/price.sys.stop")