Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
128288a0
Commit
128288a0
authored
Feb 01, 2016
by
eric pellegrini
Browse files
Bug fix in using ps command of get_processes_info
parent
6e58f369
Changes
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/Core/Platform.py
View file @
128288a0
...
...
@@ -444,7 +444,7 @@ class PlatformPosix(Platform):
'''
# Get all the active processes using the Unix ps command
procs
=
subprocess
.
Popen
([
'ps'
,
'-o'
,
'pid,etime'
],
stdout
=
subprocess
.
PIPE
)
procs
=
subprocess
.
Popen
([
'ps'
,
'-
e
o'
,
'pid,etime'
],
stdout
=
subprocess
.
PIPE
)
# The output of the ps command is splitted according to line feeds.
procs
=
procs
.
communicate
()[
0
].
split
(
'
\n
'
)[
1
:]
...
...
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