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
9ccf246a
Commit
9ccf246a
authored
6 years ago
by
Jörn Künsemöller
Browse files
Options
Downloads
Patches
Plain Diff
Task
SW-311
: Fixed bug: test signal stop handlers get registered before signal is turned on.
parent
759edcc9
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
LCU/checkhardware/check_hardware.py
+5
-5
5 additions, 5 deletions
LCU/checkhardware/check_hardware.py
with
5 additions
and
5 deletions
LCU/checkhardware/check_hardware.py
+
5
−
5
View file @
9ccf246a
...
...
@@ -371,6 +371,11 @@ def safely_start_test_signal(start_cmd, stop_cmd):
:param stop_cmd: the command to stop on exit as shell-executable string
"""
# set things up sp signal is stopped when check_hardware terminates
register_signal_handlers
(
stop_cmd
)
register_exit_handler
(
stop_cmd
)
start_watchdog_daemon
(
os
.
getpid
(),
stop_cmd
)
# this alone would actually be sufficient
# start signal
try
:
check_call
(
start_cmd
,
shell
=
True
)
...
...
@@ -378,11 +383,6 @@ def safely_start_test_signal(start_cmd, stop_cmd):
logger
.
error
(
"
Could not start the test signal! Non-zero return code from start_cmd (%s).
"
%
start_cmd
,
ex
)
raise
# set things up sp signal is stopped when check_hardware terminates
register_signal_handlers
(
stop_cmd
)
register_exit_handler
(
stop_cmd
)
start_watchdog_daemon
(
os
.
getpid
(),
stop_cmd
)
# this alone would actually be sufficient
def
safely_start_test_signal_from_ParameterSet
(
settings
):
'''
...
...
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