Closed jm33-m0 closed 3 years ago
https://github.com/jm33-m0/emp3r0r/blob/131aea90c08df2b820485d3523ea4d8c314a6a82/shellcode/guardian.asm#L25
on success, returns the process ID of the child whose state has changed; if WNOHANG was specified and one or more child(ren) specified by pid exist, but have not yet changed state, then 0 is returned. On error, -1 is returned.
And it returns 0 as I see in gdb
It turned out that I used a wrong syscall NR...
https://github.com/jm33-m0/emp3r0r/blob/131aea90c08df2b820485d3523ea4d8c314a6a82/shellcode/guardian.asm#L25
And it returns 0 as I see in gdb