diff options
Diffstat (limited to 'samples/tailboxbg2')
| -rwxr-xr-x | samples/tailboxbg2 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/tailboxbg2 b/samples/tailboxbg2 index 628cb0571540..b71a6c6c42fe 100755 --- a/samples/tailboxbg2 +++ b/samples/tailboxbg2 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: tailboxbg2,v 1.10 2012/06/29 09:51:11 tom Exp $ +# $Id: tailboxbg2,v 1.11 2019/12/11 00:11:51 tom Exp $ . ./setup-vars @@ -19,13 +19,13 @@ $DIALOG --title "TAIL BOXES" \ # The --and-widget causes a tab to be emitted, but our example will only # write one number to stderr. -pid=`cat $tempfile |sed -e 's/ //g'` +pid=`sed -e 's/ //g' $tempfile` if test -n "$pid" ; then # wait a while for the background process to run sleep 10 # now kill it -kill -$SIG_QUIT $pid 2>&1 >/dev/null 2>/dev/null +kill "-$SIG_QUIT" "$pid" 2>&1 >/dev/null 2>/dev/null echo "killed [$pid]" fi |
