From f3407f445d51dac3b9415cb5025ac98ccbbc80eb Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 15 Feb 2013 11:18:55 -0500 Subject: 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 --- src/pkg/runtime/runtime.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pkg/runtime/runtime.h') 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]; -- cgit v1.3-5-g9baa