From 1e83adbbebd0f5dc971915fd7e5db032c3d2b731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= Date: Fri, 30 Aug 2019 10:58:27 +0200 Subject: [PATCH] unix: fix coredump bit on aix/ppc64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id7a299f240bf1d6394c7d2acb6fd93b9f8f6ca27 Reviewed-on: https://go-review.googlesource.com/c/sys/+/192359 Run-TryBot: Clément Chigot TryBot-Result: Gobot Gobot Reviewed-by: Tobias Klauser --- unix/syscall_aix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/syscall_aix.go b/unix/syscall_aix.go index e2802411..9ad8a0d4 100644 --- a/unix/syscall_aix.go +++ b/unix/syscall_aix.go @@ -350,7 +350,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 }