Catch some SIG to kill sons
This commit is contained in:
parent
65edeb149d
commit
84c3fdd8fa
@ -25,6 +25,8 @@ TMPF=`mktemp`
|
|||||||
tail -f "$TMPF" | ./gen_site.pl -d -s /tmp/test.sock -o ./out ERRORS HOME all DS &
|
tail -f "$TMPF" | ./gen_site.pl -d -s /tmp/test.sock -o ./out ERRORS HOME all DS &
|
||||||
KP2=$!
|
KP2=$!
|
||||||
|
|
||||||
|
trap "kill $KP1 $KP2; rm -rf '$TMPF'; echo" SIGINT SIGTERM
|
||||||
|
|
||||||
while ! [ -f /tmp/stop ];
|
while ! [ -f /tmp/stop ];
|
||||||
do
|
do
|
||||||
./synchro.sh delete
|
./synchro.sh delete
|
||||||
|
@ -25,6 +25,8 @@ TMPF=`mktemp`
|
|||||||
tail -f "$TMPF" | ./gen_site.pl -d -s /tmp/test.sock -bt /challenge/ -ba /challenge-admin/ -o ./out ERRORS HOME all DS &
|
tail -f "$TMPF" | ./gen_site.pl -d -s /tmp/test.sock -bt /challenge/ -ba /challenge-admin/ -o ./out ERRORS HOME all DS &
|
||||||
KP2=$!
|
KP2=$!
|
||||||
|
|
||||||
|
trap "kill $KP1 $KP2; rm -rf '$TMPF'; echo" SIGINT SIGTERM
|
||||||
|
|
||||||
while ! [ -f /tmp/stop ];
|
while ! [ -f /tmp/stop ];
|
||||||
do
|
do
|
||||||
if [ `ls submission | wc -l` -gt 1 ]
|
if [ `ls submission | wc -l` -gt 1 ]
|
||||||
|
Loading…
Reference in New Issue
Block a user