summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlin Bingham <cb@viennan.net>2017-07-08 12:59:34 +1200
committerOri Bernstein <ori@eigenstate.org>2017-07-07 19:01:17 -0700
commit180c0d000870433ae0108bb0bac1e9cdac5ce92c (patch)
tree9ea3e12adef137ba43edc7de940caba7bf8768be
parentd052b8be7485d34e4349c80b43cda34f574e7cd8 (diff)
downloadmc-180c0d000870433ae0108bb0bac1e9cdac5ce92c.tar.gz
Use the correct syscall for kill on OpenBSD
-rw-r--r--lib/sys/sys+openbsd-x64.myr2
-rw-r--r--rt/abort-openbsd.s2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/sys/sys+openbsd-x64.myr b/lib/sys/sys+openbsd-x64.myr
index 8b4ffcf..7b0df69 100644
--- a/lib/sys/sys+openbsd-x64.myr
+++ b/lib/sys/sys+openbsd-x64.myr
@@ -379,7 +379,6 @@ pkg sys =
const Syschflags : scno = 34
const Sysfchflags : scno = 35
const Syssync : scno = 36
- const Syskill : scno = 37
const Sysstat : scno = 38
const Sysgetppid : scno = 39
const Syslstat : scno = 40
@@ -457,6 +456,7 @@ pkg sys =
const Sysgetsockopt : scno = 118
const Sysreadv : scno = 120
const Syswritev : scno = 121
+ const Syskill : scno = 122
const Sysfchown : scno = 123
const Sysfchmod : scno = 124
const Syssetreuid : scno = 126
diff --git a/rt/abort-openbsd.s b/rt/abort-openbsd.s
index a4b12bb..94d301b 100644
--- a/rt/abort-openbsd.s
+++ b/rt/abort-openbsd.s
@@ -27,7 +27,7 @@ __rt$abort_oob:
movq $20,%rax /* getpid */
syscall
movq %rax, %rdi /* save pid */
- movq $37, %rax /* kill(pid=%rdi, sig=%rsi) */
+ movq $122, %rax /* kill(pid=%rdi, sig=%rsi) */
movq $6, %rsi
syscall
.data