Created
November 24, 2015 10:28
-
-
Save dedeibel/1ab07394f7e0392f453f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PID=$1 | |
if [ -z "$PID" ]; then | |
echo "no PID given" | |
exit 1 | |
fi | |
while [[ ( -d "/proc/$PID" ) && ( -z `grep zombie "/proc/$PID/status"` ) ]]; do | |
sleep 0.5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment