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
The following reply was made to PR kern/52342; it has been noted by GNATS.
From: u-bc8k%aetey.se@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: Re: kern/52342: linux ABI exit(non-zero) returns zero status to the
parent process
Date: Mon, 26 Jun 2017 16:12:31 +0200
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