diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-02-26 09:05:35 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-02-26 09:05:35 +0000 |
| commit | 01b7bcd408fd9e9dc9088b1df5761fcc0971d7e1 (patch) | |
| tree | 593f2e62b1846058a020ffcecb0ef93eb7ac2153 /samples/tailboxbg1 | |
| parent | 4dccdce4191d6e2bc3ba9f782b0fe1aa46b743e3 (diff) | |
Diffstat (limited to 'samples/tailboxbg1')
| -rwxr-xr-x | samples/tailboxbg1 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/tailboxbg1 b/samples/tailboxbg1 index f04567a92f6d..456e720969e5 100755 --- a/samples/tailboxbg1 +++ b/samples/tailboxbg1 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: tailboxbg1,v 1.10 2012/06/29 09:51:46 tom Exp $ +# $Id: tailboxbg1,v 1.11 2019/12/11 00:12:27 tom Exp $ . ./setup-vars @@ -18,13 +18,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 |
