未验证 提交 d106e55e 编写于 作者: H huangjianhui 提交者: GitHub

Merge branch 'develop' into dev_2

...@@ -16,6 +16,7 @@ import signal ...@@ -16,6 +16,7 @@ import signal
import os import os
import time import time
import json import json
import platform
from paddle_serving_server.env import CONF_HOME from paddle_serving_server.env import CONF_HOME
...@@ -91,6 +92,9 @@ def dump_pid_file(portList, model): ...@@ -91,6 +92,9 @@ def dump_pid_file(portList, model):
dump_pid_file([9494, 10082], 'serve') dump_pid_file([9494, 10082], 'serve')
''' '''
pid = os.getpid() pid = os.getpid()
if platform.system() == "Windows":
gid = pid
else:
gid = os.getpgid(pid) gid = os.getpgid(pid)
pidInfoList = [] pidInfoList = []
filepath = os.path.join(CONF_HOME, "ProcessInfo.json") filepath = os.path.join(CONF_HOME, "ProcessInfo.json")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册