Commit c4c7930
committed
Fix race condition in
This fixes a bug introduced in ba7bb38 leading to `isotovideo can not
be started` in openQA.
We must not *only* check the process group because it might not have been
created. (The `is_running` function might be called immediately after
`start` when `setpgrp(0, 0)` hasn't been executed yet.)
I tested this by putting `sleep 5` before `setpgrp(0, 0)`. Without this
change openQA runs into `isotovideo can not be started` and with this
change it works. I also tested whether cleanup of the whole process
group still works.
Related ticket: https://progress.opensuse.org/issues/170209is_running when kill_whole_group is set1 parent 0051f50 commit c4c7930
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| |||
0 commit comments