Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix killing of child process of clevisloop #449

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

oldium
Copy link
Contributor

@oldium oldium commented Jan 28, 2024

The usage of ps -l is fragile and does not always return the expected set of columns. It differs even between several BusyBox versions and operating systems. Use ps -o pid,ppid to get the expected set of columns instead.

Also kill parent first before its children to prevent spawning another command from clevisloop itself.

Fixes #448

The usage of `ps -l` is fragile and does not always return the expected
set of columns. It differs even between several BusyBox versions and
operating systems. Use `ps -o pid,ppid` to get the expected set of columns
instead.

Also kill parent first before its children to prevent spawning another
command from clevisloop itself.

Fixes latchset#448

Signed-off-by: Oldřich Jedlička <[email protected]>
Copy link
Collaborator

@sarroutbi sarroutbi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello. Thanks for your PR. Changes LGTM

@sergio-correia sergio-correia merged commit c03dbf3 into latchset:master Jan 30, 2024
12 checks passed
@oldium oldium deleted the fix/kill-child-process branch February 1, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not working killing of child process of clevisloop
3 participants