Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
92e8f1f8
Commit
92e8f1f8
authored
8 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #9678: Use subprocess27 module to use poll() in Popen as well
parent
fe113255
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CEP/Pipeline/framework/lofarpipe/support/subprocessgroup.py
+8
-1
8 additions, 1 deletion
CEP/Pipeline/framework/lofarpipe/support/subprocessgroup.py
with
8 additions
and
1 deletion
CEP/Pipeline/framework/lofarpipe/support/subprocessgroup.py
+
8
−
1
View file @
92e8f1f8
import
subprocess
import
select
import
select
import
os
import
os
import
signal
import
signal
...
@@ -6,6 +5,14 @@ import fcntl
...
@@ -6,6 +5,14 @@ import fcntl
import
time
import
time
from
lofarpipe.support.lofarexceptions
import
PipelineException
from
lofarpipe.support.lofarexceptions
import
PipelineException
# subprocess is broken in python <=2.6. It does not work for fds > 1024 for example.
try
:
import
subprocess27
as
subprocess
print
>>
sys
.
stderr
,
__file__
,
"
: Using Python 2.7 subprocess module!
"
except
ImportError
:
import
subprocess
print
>>
sys
.
stderr
,
__file__
,
"
: Using default subprocess module!
"
class
SubProcess
(
object
):
class
SubProcess
(
object
):
STDOUT
=
1
STDOUT
=
1
STDERR
=
2
STDERR
=
2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment