Repository navigation
Propagate SIGINFO to all processes - #150
Merged
Merged
Conversation
Contributor
Author
|
@DarthSim would greatly appreciate a review on this when you have the time 🙏 |
joeytepp
commented
Feb 22, 2023
|
|
||
| const runningCheckInterval = 100 * time.Millisecond | ||
|
|
||
| const SIGINFO syscall.Signal = 29 |
Contributor
Author
There was a problem hiding this comment.
Had to do this since syscall.SIGINFO isn't defined in go on Linux, see golang/go#1653
Contributor
Author
There was a problem hiding this comment.
The alternative would be to create separate files with build tags for linux and darwin, but this seemed like a much simpler approach
Owner
|
Hey @joeytepp! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
My team has been using
overmindfor a while now and 1 thing that's been missing for us has been the propagation of theSIGINFOsignal. One of our processes trapsSIGINFOs (throughctrl + t) when run in isolation, however when using overmind this no longer works. This change would propagate theSIGINFOsignal to all overmind processes which would allow for each process to handle the signal itself.You could test locally this by creating the following
Procfileat the root of your foldertest: sleep 10000and then running
go build && ./overmind start. After this pressctrl + tto trigger info and verify that you get the output of theSIGINFOsignal on thesleepprocess. It should look something like