Skip to content

Conversation

@deliro
Copy link

@deliro deliro commented Aug 9, 2021

Hi!

Currently, SOPS doesn't redirect any signals to the child process when running in exec-file or exec-env modes so the child process can't react to a signal (e.g. SIGHUP for reloading or SIGTERM/SIGINT to shutdown graceful). Instead, SOPS shuts down without giving any chance to the child process.

This PR causes SOPS to wait for the child process to finish first and redirect all the signals it receives to the child process. Also, child processes are created with different process group ID which means that only SOPS receives signals, and not both.

Fixes #840
Related #880

@dmedvinsky
Copy link

Hate to be that guy, but kinda bumping this. Would love to see this PR progress. Can anyone take a look?

@deliro deliro closed this Jan 13, 2022
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