Re: system(3) return code
Jan Schaumann <[email protected]> Mon, 7 Nov 2022 15:51:19 -0500
| Newsgroups | gmane.os.netbsd.documentation |
|---|---|
| Message-ID | <[email protected]> |
Martin Husemann <[email protected]> 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