Skip to content

Commit 3c041bb

Browse files
author
liubaohai
committed
proc: try execlpe exception
1 parent 35f5782 commit 3c041bb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

proc/proc.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ def start_process(cmd, target, env, *args):
110110
args = list(args)
111111
env = dict(os.environ, **env)
112112
args.append(env)
113-
os.execlpe(cmd, cmd, target, *args)
113+
try:
114+
os.execlpe(cmd, cmd, target, *args)
115+
except Exception:
116+
# we can do nothing when error in execlpe
117+
# don't logger here, logger need get GIL lock
118+
# children process may dead lock
119+
pass
114120
else:
115121
_waitpid(pid)

0 commit comments

Comments
 (0)