Skip to content

Commit

Permalink
test(Git Hub Actions): change logic to spot zombies
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Lombardo committed May 22, 2024
1 parent 8f64a65 commit a018b78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/webserv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ jobs:
fi
- name: Check for Zombie Processes
run: |
zombies=$(ps aux | grep 'Z' | grep -v grep)
zombies=$(ps aux | awk '$8=="Z" {print $2}')
if [ -n "$zombies" ]; then
echo " ❌ Zombie processes found:"
echo "$zombies"
ps aux | grep 'Z' | grep -v grep
ps aux | awk '$8=="Z"'
for pid in $zombies; do
parent_pid=$(ps -o ppid= -p $pid)
echo "Sending SIGCHLD to parent process PID $parent_pid"
Expand Down

0 comments on commit a018b78

Please sign in to comment.