From 87113f7eadf6d8b12279709f05c0359b54b194ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cl=C3=A9ment=20Chigot?= Date: Fri, 30 Aug 2019 10:49:10 +0200 Subject: [PATCH] syscall: fix coredump bit for aix/ppc64 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I92173c3b5f842b829aac7c4d7abbe8b5113e530a Reviewed-on: https://go-review.googlesource.com/c/go/+/191787 Run-TryBot: Clément Chigot TryBot-Result: Gobot Gobot Reviewed-by: Tobias Klauser --- src/syscall/syscall_aix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syscall/syscall_aix.go b/src/syscall/syscall_aix.go index ade2a9d367..d8010d35ce 100644 --- a/src/syscall/syscall_aix.go +++ b/src/syscall/syscall_aix.go @@ -494,7 +494,7 @@ func (w WaitStatus) Signal() Signal { func (w WaitStatus) Continued() bool { return w&0x01000000 != 0 } -func (w WaitStatus) CoreDump() bool { return w&0x200 == 0 } +func (w WaitStatus) CoreDump() bool { return w&0x80 == 0x80 } func (w WaitStatus) TrapCause() int { return -1 } -- 2.48.1