diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-03-30 19:43:21 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-03-30 19:43:21 +0000 |
commit | f3107d487ab9b08a38cd690633d9f5e717d41e69 (patch) | |
tree | 05d0ae54a7e280f6964260dbdbb7446a96095db1 /pkg/safecopy/safecopy.go | |
parent | a940cfd7d37682bcd3c34edbd24fb22f2e4d24f6 (diff) | |
parent | 3fac85da951f9f56d0232718ea7584250cf11f31 (diff) |
Merge release-20200219.0-259-g3fac85d (automated)
Diffstat (limited to 'pkg/safecopy/safecopy.go')
-rwxr-xr-x | pkg/safecopy/safecopy.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/safecopy/safecopy.go b/pkg/safecopy/safecopy.go index 2fb7e5809..521f1a82d 100755 --- a/pkg/safecopy/safecopy.go +++ b/pkg/safecopy/safecopy.go @@ -127,10 +127,10 @@ func initializeAddresses() { func init() { initializeAddresses() - if err := ReplaceSignalHandler(syscall.SIGSEGV, reflect.ValueOf(signalHandler).Pointer(), &savedSigSegVHandler); err != nil { + if err := ReplaceSignalHandler(syscall.SIGSEGV, reflect.ValueOf(signalHandler).Pointer(), &savedSigSegVHandler, 0); err != nil { panic(fmt.Sprintf("Unable to set handler for SIGSEGV: %v", err)) } - if err := ReplaceSignalHandler(syscall.SIGBUS, reflect.ValueOf(signalHandler).Pointer(), &savedSigBusHandler); err != nil { + if err := ReplaceSignalHandler(syscall.SIGBUS, reflect.ValueOf(signalHandler).Pointer(), &savedSigBusHandler, 0); err != nil { panic(fmt.Sprintf("Unable to set handler for SIGBUS: %v", err)) } syserror.AddErrorUnwrapper(func(e error) (syscall.Errno, bool) { |