On Tue, Aug 13, 2019 at 1:03 AM hui zhang <fastfad...@gmail.com> wrote: > > in other words > we need a go runtime signal mask . > just google, no such api provided by go yet . > I want know why ? > any workaround?
All the details of signal handling in Go can be seen at https://golang.org/pkg/os/signal. There is no Go API to set the signal mask because the os/signal package is intended to handle that for you. It's hard to combine C and Go code in the same program and have them both do signal handling. If your C program sends itself a signal periodically, then I recommend that you have your C code call sigaction to override the Go signal handler. If the Go code needs to know about the signal, have the C code call a Go function to do so. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUYwNLa1NFfenJFOoQbFoX55E8T6GnNwn%2BFg2fn8YWhAA%40mail.gmail.com.