Opening a new terminal and typing the command
ps -l gives :
4 R 1000 23132 23104 99 80 0 - 2177945 - pts/27 00:00:07 firefox
If the shell is closed with the command
exit, the firefox child process stays open !
Was it always the case ? Isn't firefox supposed to be closing as well ? Is there something new in a recent kernel or something i'm missing ?
The result of
ps -el|grep firefox is then :
4 S 1000 23132 1 14 80 0 - 2233312 poll_s ? 00:00:21 firefox
The PPID has been changed to 1.
What is responsible for this PPID change to 1 ?
EDIT : Oh I've just realised that closing the terminal and closing the shell have very different results : closing the terminal does close all the child processes, but not when the shell is closed with the exit command... No idea why. (Closing terminal is sending SIGTERM to all child processes ? But closing shell is leaving orphans ?)