Skip to content

Commit

Permalink
test(Git Hub Actions): fix syntax zombies
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Lombardo committed May 22, 2024
1 parent 8751a69 commit e77981f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/webserv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ jobs:
if [ -n "$zombies" ]; then
echo " ❌ Zombie processes found:"
echo "$zombies"
ps aux | grep 'Z' | grep -v grep
for pid in $zombies; do
parent_pid=$(ps -o ppid= -p $pid)
echo "Sending SIGCHLD to parent process PID $parent_pid"
kill -SIGCHLD $parent_pid || echo "Failed to signal parent PID $parent_pid"
done
exit 1
else
echo "✅ No zombie processes found."
Expand Down

0 comments on commit e77981f

Please sign in to comment.