Lines Matching refs:prog
36 eval prog=reaper.$$
37 cat > /tmp/$prog.c <<EOF
83 sed -i '' "s#SLP#/tmp/$prog.sleep#" /tmp/$prog.c
84 cc -o /tmp/$prog -Wall -Wextra -O0 /tmp/$prog.c || exit 1
85 rm /tmp/$prog.c
87 cp /bin/sleep /tmp/$prog.sleep
91 timeout 2s /tmp/$prog
93 pgrep -q $prog || break
96 if pgrep -q $prog; then
99 pgrep "$prog|timeout" | xargs ps -lp
100 pkill $prog
101 rm -f /tmp/$prog /tmp/$prog.sleep
107 rm /tmp/$prog /tmp/$prog.sleep