NetBSD-Docs archive

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

Re: system(3) return code



Martin Husemann <martin%duskware.de@localhost> wrote:
> On Mon, Nov 07, 2022 at 02:55:20PM -0500, Jan Schaumann wrote:
> > While that is the case, that's internal to system(3);
> > the end result for the user is that system(3) will
> > return 127.
> 
> No, it is not internal to system. The system(3) man page says:
> 
>      Otherwise, system() returns the termination status of the shell in the
>      format specified by waitpid(2).

Ah, that part - I was only looking at the return value
itself.  Thanks!

-Jan


Home | Main Index | Thread Index | Old Index