提交 a9a8ee47 编写于 作者: F felixhjh

fix windows gid recording

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