NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/52342: linux ABI exit(non-zero) returns zero status to the parent process

On Mon, Jun 26, 2017 at 01:50:01PM +0000, matthew green wrote:
>  indeed - ktrace shows exit_group() for the false(1) binary.
>  hmm, even a static binary using _exit(2) shows exit_group()
>  system call.  how does one get exit system call to be used?

a bit of assembler:

ebx <== exit status
eax <== "1" which is __NR_exit

int 0x80

Home | Main Index | Thread Index | Old Index