Re: wait returns 127 for existing process?

2021-08-15 Thread Andreas Kusalananda Kähäri
On Sun, Aug 15, 2021 at 07:23:53PM +0200, Claus Assmann wrote: > On Sun, Aug 15, 2021, Andreas Kusalananda Khri wrote: > > > wait returns 127 if the process is not a child of the current shell. > > Is it a child process of the current shell? If so, does it install a > > Yes, indirectly via 2-3

Re: wait returns 127 for existing process?

2021-08-15 Thread Claus Assmann
On Sun, Aug 15, 2021, Andreas Kusalananda Khri wrote: > wait returns 127 if the process is not a child of the current shell. > Is it a child process of the current shell? If so, does it install a Yes, indirectly via 2-3 sh scripts. > signal handler for the HUP signal? Yes, the "usual" one for

Re: wait returns 127 for existing process?

2021-08-15 Thread Jeremie Courreges-Anglas
On Sun, Aug 15 2021, Claus Assmann wrote: > I must misunderstand something about wait (sh command), but I'm not > sure what: why does wait return 127 for an existing process? > > $ PM=31309;kill -HUP $PM; echo $?; ps -p $PM; wait $PM; echo $?; ps -p $PM > 0 > PID TT STATTIME COMMAND >

Re: wait returns 127 for existing process?

2021-08-15 Thread Andreas Kusalananda Kähäri
On Sun, Aug 15, 2021 at 10:57:33AM +0200, Claus Assmann wrote: > I must misunderstand something about wait (sh command), but I'm not > sure what: why does wait return 127 for an existing process? > > $ PM=31309;kill -HUP $PM; echo $?; ps -p $PM; wait $PM; echo $?; ps -p $PM > 0 > PID TT STAT