Re: system(3) return code

2022-11-07 Thread Jan Schaumann
Martin Husemann 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: > > Oth

Re: system(3) return code

2022-11-07 Thread Martin Husemann
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

Re: system(3) return code

2022-11-07 Thread Jan Schaumann
Martin Husemann wrote: > On Mon, Nov 07, 2022 at 02:30:02PM -0500, Jan Schaumann wrote: > > Hi, > > > > system(3) has some awkward phrasing for the case where > > the execution of the shell fails: > > > > "If execution of the shell fails, system() returns the > > termination status for a program

Re: system(3) return code

2022-11-07 Thread Martin Husemann
On Mon, Nov 07, 2022 at 02:30:02PM -0500, Jan Schaumann wrote: > Hi, > > system(3) has some awkward phrasing for the case where > the execution of the shell fails: > > "If execution of the shell fails, system() returns the > termination status for a program that terminates with > a call of exit(1