Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snseventd
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OTDI Middleware
snseventd
Commits
3e052d5e
Commit
3e052d5e
authored
4 years ago
by
Edward Hicks
Browse files
Options
Downloads
Patches
Plain Diff
split command into an array since run seems to want it that way instead
parent
65bf7ea4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#92232
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
snseventd.py
+4
-3
4 additions, 3 deletions
snseventd.py
with
4 additions
and
3 deletions
snseventd.py
+
4
−
3
View file @
3e052d5e
...
...
@@ -2,7 +2,6 @@
from
__future__
import
print_function
import
sys
import
os
from
os
import
WEXITED
,
WSTOPPED
,
WNOWAIT
,
WNOHANG
,
WCONTINUED
import
subprocess
import
time
import
argparse
...
...
@@ -492,10 +491,12 @@ while True:
# Populate the command to run with the values provided
pid
=
os
.
fork
()
if
pid
==
0
:
proc
=
subprocess
.
run
(
command
,
shell
=
True
)
proc
=
subprocess
.
run
(
command
.
split
(
'
'
)
,
shell
=
True
)
sys
.
exit
(
proc
.
returncode
)
printLog
(
"
Forked
'"
+
command
+
"'
as
"
+
str
(
pid
),
loglevels
.
INFO
)
os
.
waitpid
(
pid
,
WEXITED
|
WSTOPPED
)
# Wait for the subprocess to finish before launching any more
os
.
waitpid
(
pid
,
os
.
WEXITED
|
os
.
WSTOPPED
)
except
KeyError
as
e
:
# No valid operation messages were found
...
...
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