-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
os/signal: document how to forward all signals #22257
Comments
Change https://golang.org/cl/74730 mentions this issue: |
I don't really understand how the proposed documentation relates to the code snippet you've provided as a use-case: what does the call to |
@bcmills: @kevinburke wants to forward all signals from the parent process to the child process, so the first step is a way to find out when the parent process receives an arbitrary signal. |
Yes, apologies, I need to improve my understanding the signal forwarding
mechanisms better, and haven't had time to do that, which is why I've been
slow to respond.
…--
Kevin Burke
925.271.7005 | kev.inburke.com
On Tue, Oct 31, 2017 at 2:13 PM, Ian Lance Taylor ***@***.***> wrote:
@bcmills <https://github.com/bcmills>: @kevinburke
<https://github.com/kevinburke> wants to forward all signals from the
parent process to the child process, so the first step is a way to find out
when the parent process receives an arbitrary signal.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22257 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAOSIyCDk8csSC2XGK4sgQvAFqHn5NHrks5sx42PgaJpZM4P5CBT>
.
|
I'm writing a command line wrapper that sets some state in the world, starts a child process, waits for it to complete, and then unsets some state in the world.
So basically something like
I missed the line in the
signal.Notify
docs that saysIt might be good to provide a second Example for Notify where the args... list is empty, for people who are silly like me and miss the doc.
(It might also be good if it was easier to set up a proxied command - it seems like it's easy to miss some of the steps involved in proxying through all FD's/signals in both directions.)
The text was updated successfully, but these errors were encountered: