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 a multi-threaded process: one thread which handles signals and sends a single byte via a pipe to another thread which then (hopefully) does the appropriate thing. So it seems better to use kill -0 PID to see whether the process still exists. -- Address is valid for this mailing list only, please do not reply to it direcly, but to the list.