Merge pull request #7088 from andreby/master

Handle the case where parent PID is 0
This commit is contained in:
Jose Diaz-Gonzalez
2024-09-21 20:12:26 -04:00
committed by GitHub

2
debian/prerm vendored
View File

@@ -20,7 +20,7 @@ ps_backtrace() {
fi
ppid=$(ps -o ppid= $pid)
ps uww $header_modifier -p $pid
if [ $pid -eq 1 ]; then
if [ $pid -eq 1 -o $pid -eq 0 ]; then
break
fi
pid=$ppid