diff options
| author | Russ Cox <rsc@golang.org> | 2013-02-15 11:18:55 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-02-15 11:18:55 -0500 |
| commit | f3407f445d51dac3b9415cb5025ac98ccbbc80eb (patch) | |
| tree | 98c136267db30a124781f60f0d4a7a3014fc84a9 /src/pkg/runtime/runtime.h | |
| parent | 5b20a18f3b985cdf116a0ea6dd589d26056b16ad (diff) | |
| download | go-f3407f445d51dac3b9415cb5025ac98ccbbc80eb.tar.xz | |
runtime: fix running under nohup
There are two ways nohup(1) might be implemented:
it might mask away the signal, or it might set the handler
to SIG_IGN, both of which are inherited across fork+exec.
So two fixes:
* Make sure to preserve the inherited signal mask at
minit instead of clearing it.
* If the SIGHUP handler is SIG_IGN, leave it that way.
Fixes #4491.
R=golang-dev, mikioh.mikioh, iant
CC=golang-dev
https://golang.org/cl/7308102
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 77f60cb4b5..6709e4f261 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -290,6 +290,7 @@ struct M GCStats gcstats; bool racecall; void* racepc; + void* sigset; uint32 moreframesize_minalloc; uintptr settype_buf[1024]; |
