Skip to content

make auto-restart restart the sub-process if it terminates#896

Merged
BoboTiG merged 2 commits into
gorakhargosh:masterfrom
taleinat:auto-restart-handle-subprocess-termination
Jun 6, 2022
Merged

make auto-restart restart the sub-process if it terminates#896
BoboTiG merged 2 commits into
gorakhargosh:masterfrom
taleinat:auto-restart-handle-subprocess-termination

Conversation

@taleinat

@taleinat taleinat commented Jun 5, 2022

Copy link
Copy Markdown
Contributor

Currently, when running watchmedo auto-restart ..., if the sub-process terminates, it is left as a zombie process and watchmedo continues running and waiting for filesystem events.

With this PR, the sub-process will be monitored for termination, and restarted if it terminates.

Alternatively, we could make this exit upon sub-process termination, possibly with a flag to choose between the two behaviours.

This is related to issue #405.

@BoboTiG

BoboTiG commented Jun 5, 2022

Copy link
Copy Markdown
Collaborator

Thanks a lot @taleinat !

A small line in the changelog, and we will be good to go :)

@taleinat

taleinat commented Jun 5, 2022

Copy link
Copy Markdown
Contributor Author

A small line in the changelog, and we will be good to go :)

Done.

@BoboTiG
BoboTiG merged commit fa806f1 into gorakhargosh:master Jun 6, 2022
@taleinat
taleinat deleted the auto-restart-handle-subprocess-termination branch June 6, 2022 20:44
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.

2 participants