Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
prunner
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rx-etersoft
prunner
Commits
ae52c2f4
Commit
ae52c2f4
authored
Mar 09, 2018
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in terminate
parent
26955657
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
prunner
bin/prunner
+3
-3
No files found.
bin/prunner
View file @
ae52c2f4
...
...
@@ -84,7 +84,6 @@ class ChildProc:
setattr
(
self
,
p
[
'name'
],
p
[
'value'
])
if
isinstance
(
self
.
restart
,
bool
):
print
"for '
%
s' restart is BOOL"
%
self
.
cmd
self
.
restart
=
int
(
0
)
# internal fields
...
...
@@ -215,7 +214,8 @@ def do_monitoring(main_pid, run_list, not_monit):
monit_process
=
psutil
.
Process
(
main_pid
)
while
not
term_check_alive
.
is_set
():
try
:
monit_process
.
wait
(
check_alive_period
)
if
not
monit_process
.
wait
(
check_alive_period
):
break
except
psutil
.
TimeoutExpired
:
pass
...
...
@@ -224,7 +224,7 @@ def do_monitoring(main_pid, run_list, not_monit):
finally
:
term_check_alive
.
set
()
if
check_alive_thread
:
if
check_alive_thread
.
is_alive
()
:
check_alive_thread
.
join
()
terminate_all_process
(
proc_list
)
...
...
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