Re: [go-nuts] Getting the current process signal disposition

2017-08-25 Thread Ian Lance Taylor
On Fri, Aug 25, 2017 at 11:09 AM, adam.azarchs via golang-nuts wrote: > TL;DR it would be nice if there were a public API to find the current signal > disposition of your process. The runtime already stores that information in > runtime.sigtable, but doesn't expose it. > > I ran into a gotcha wit

[go-nuts] Getting the current process signal disposition

2017-08-25 Thread adam.azarchs via golang-nuts
TL;DR it would be nice if there were a public API to find the current signal disposition of your process. The runtime already stores that information in runtime.sigtable, but doesn't expose it. I ran into a gotcha with handling SIGHUP the other day. I need to handle SIGHUP in order to shut do