Skip to content

Commit

Permalink
comment out pstree calls
Browse files Browse the repository at this point in the history
Each invocation of pstree adds extra pids, which throws off the pid count
  • Loading branch information
asmacdo committed Jan 14, 2025
1 parent 46b8a5a commit 5040f1d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/data/abandoning_parent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ for i in `seq 1 $nchildren`; do
done

echo "Started $nchildren for $$"
pstree -c -p "$$"
# Can be useful when running manually, but commented out so we can count pids in tests
# pstree -c -p "$$"

echo "Starting one more in subprocess"

( "$@" & )

jobs

pstree -c -p "$$"
# Can be useful when running manually, but commented out so we can count pids in tests
# pstree -c -p "$$"
echo "waiting"
wait

0 comments on commit 5040f1d

Please sign in to comment.