Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
erp5
Commits
4694a5bf
Commit
4694a5bf
authored
Jul 23, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testnode: stop using deprecated psutils API
parent
049854dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
erp5/util/testnode/ProcessManager.py
erp5/util/testnode/ProcessManager.py
+2
-2
No files found.
erp5/util/testnode/ProcessManager.py
View file @
4694a5bf
...
...
@@ -106,7 +106,7 @@ def killCommand(pid, log):
everyone at the same time
"""
process
=
psutil
.
Process
(
pid
)
new_child_set
=
set
([
x
.
pid
for
x
in
process
.
get_
children
(
recursive
=
True
)])
new_child_set
=
set
([
x
.
pid
for
x
in
process
.
children
(
recursive
=
True
)])
child_set
=
None
os
.
kill
(
pid
,
signal
.
SIGSTOP
)
while
new_child_set
!=
child_set
:
...
...
@@ -117,7 +117,7 @@ def killCommand(pid, log):
os
.
kill
(
child_pid
,
signal
.
SIGSTOP
)
time
.
sleep
(
1
)
child_set
=
new_child_set
new_child_set
=
set
([
x
.
pid
for
x
in
process
.
get_
children
(
recursive
=
True
)])
new_child_set
=
set
([
x
.
pid
for
x
in
process
.
children
(
recursive
=
True
)])
log
(
"killCommand, finishing, child_set : %r"
%
(
child_set
,))
for
child_pid
in
child_set
:
os
.
kill
(
child_pid
,
signal
.
SIGKILL
)
...
...
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