Skip to content

Conversation

JoelLinn
Copy link
Contributor

docker-gen uses SIGHUP to trigger regeneration.
However, when SIGHUP is fired before docker-gen is fully initialized (and the signal handler was installed), the process will just exit(2).
This fix ignores SIGHUP until the signal handler is installed.

Fixes #244

@JoelLinn
Copy link
Contributor Author

#244 (comment)

@buchdag
Copy link
Member

buchdag commented Sep 30, 2021

HI @JoelLinn, thanks for catching and fixing this one. Have you been able to test the fix in production ?

Edit: looking at the issue seems like yes, you and others did.

@JoelLinn
Copy link
Contributor Author

I have deployed this fix (as my custom build on-top the master tip of that time) over a year ago on about 40 servers and didn’t have any (re-)generation problems since then.

It seems to be the root cause for the issue #244 (although the issue title is pretty generic so there might be all sorts of causes for a phenomenon like it)

I’m happy this project is maintained again ☺️

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.

Restart unless stopped not working

2 participants