Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
ec2150b2
Unverified
Commit
ec2150b2
authored
Jul 20, 2024
by
Ke Bao
Committed by
GitHub
Jul 19, 2024
Browse files
Fix kill process util (#666)
parent
7620cd37
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/utils.py
python/sglang/srt/utils.py
+1
-1
No files found.
python/sglang/srt/utils.py
View file @
ec2150b2
...
@@ -335,7 +335,7 @@ def kill_parent_process():
...
@@ -335,7 +335,7 @@ def kill_parent_process():
"""Kill the parent process and all children of the parent process."""
"""Kill the parent process and all children of the parent process."""
current_process
=
psutil
.
Process
()
current_process
=
psutil
.
Process
()
parent_process
=
current_process
.
parent
()
parent_process
=
current_process
.
parent
()
children
=
cur
rent_process
.
children
(
recursive
=
True
)
children
=
pa
rent_process
.
children
(
recursive
=
True
)
for
child
in
children
:
for
child
in
children
:
if
child
.
pid
!=
current_process
.
pid
:
if
child
.
pid
!=
current_process
.
pid
:
os
.
kill
(
child
.
pid
,
9
)
os
.
kill
(
child
.
pid
,
9
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment