summaryrefslogtreecommitdiff
path: root/sh.asm
diff options
context:
space:
mode:
authorfaissaloo <faissaloo@gmail.com>2016-06-21 20:50:39 +0100
committerfaissaloo <faissaloo@gmail.com>2016-06-21 20:50:39 +0100
commit946aadad12b4b095dce1ba67d824bf7750101134 (patch)
tree68bdecb3c057dd02ceeac910eea429a86ee2a4d6 /sh.asm
parent71b9646e8256179f9b0f013d7399bc98a47c4663 (diff)
downloaddbsh-946aadad12b4b095dce1ba67d824bf7750101134.tar.gz
Relied on the value of r8 accidentally, oops
Diffstat (limited to 'sh.asm')
-rw-r--r--sh.asm5
1 files changed, 4 insertions, 1 deletions
diff --git a/sh.asm b/sh.asm
index 6b19535..e50d941 100644
--- a/sh.asm
+++ b/sh.asm
@@ -13,6 +13,9 @@ section .data
;Indicates that a file can be accessed in the way specified
F_OK equ 0x0
+
+ ;option for waitid
+ P_PGID equ 2
;Syscall constants
sys_read equ 0x00
sys_write equ 0x01
@@ -100,7 +103,7 @@ _wait_for_proc:
mov rax, sys_waitid
mov rdi, 0
xor rdx, rdx
- xor r10, r8
+ mov r10, P_PGID
xor r8, r8
syscall