]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: fix coredump bit for aix/ppc64
authorClément Chigot <clement.chigot@atos.net>
Fri, 30 Aug 2019 08:49:10 +0000 (10:49 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Fri, 30 Aug 2019 14:30:26 +0000 (14:30 +0000)
Change-Id: I92173c3b5f842b829aac7c4d7abbe8b5113e530a
Reviewed-on: https://go-review.googlesource.com/c/go/+/191787
Run-TryBot: Clément Chigot <clement.chigot@atos.net>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/syscall/syscall_aix.go

index ade2a9d367f691db126585d6698bcf7ae57578f8..d8010d35ce490bdb45708f68fa2c2f27dbd59ec8 100644 (file)
@@ -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 }