Public bug reported: Binary package hint: bash
When parent of bash terminates, the PPID variable is not updated. One might also change the documentation to say that PPID will no be updated, which would make this behavior a "feature" Testscript as attachment, execute "SleepTest.sh parent" and look at "log" after 10 seconds: Outer bash: pid 3217, parent 2711 Inner bash: vars 3218 3217 vs ps 3218 3217 Inner bash: vars 3218 3217 vs ps 3218 3217 Inner bash: vars 3218 3217 vs ps 3218 3217 Inner bash: vars 3218 3217 vs ps 3218 3217 Inner bash: vars 3218 3217 vs ps 3218 3217 Inner bash: vars 3218 3217 vs ps 3218 1 Inner bash: vars 3218 3217 vs ps 3218 1 Inner bash: vars 3218 3217 vs ps 3218 1 ** Affects: bash (Ubuntu) Importance: Undecided Status: New -- Bash PPID is wrong when parent terminates https://bugs.launchpad.net/bugs/340571 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs