aboutsummaryrefslogtreecommitdiffstats
path: root/tools/killev
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-10-24 09:20:38 +0800
committerChris Toshok <toshok@src.gnome.org>2001-10-24 09:20:38 +0800
commitd92ea7b8abb7beeb5e92e46a7ba142313d5c54a6 (patch)
tree954efc6a3ecccc5a8797d9918064e3f46c1b3c69 /tools/killev
parentabb1c1895aa73a58d46ada8fea6325e5bc55fb30 (diff)
downloadgsoc2013-evolution-d92ea7b8abb7beeb5e92e46a7ba142313d5c54a6.tar
gsoc2013-evolution-d92ea7b8abb7beeb5e92e46a7ba142313d5c54a6.tar.gz
gsoc2013-evolution-d92ea7b8abb7beeb5e92e46a7ba142313d5c54a6.tar.bz2
gsoc2013-evolution-d92ea7b8abb7beeb5e92e46a7ba142313d5c54a6.tar.lz
gsoc2013-evolution-d92ea7b8abb7beeb5e92e46a7ba142313d5c54a6.tar.xz
gsoc2013-evolution-d92ea7b8abb7beeb5e92e46a7ba142313d5c54a6.tar.zst
gsoc2013-evolution-d92ea7b8abb7beeb5e92e46a7ba142313d5c54a6.zip
use eq instead of ==.
2001-10-23 Chris Toshok <toshok@ximian.com> * tools/killev: use eq instead of ==. svn path=/trunk/; revision=13970
Diffstat (limited to 'tools/killev')
-rwxr-xr-xtools/killev11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/killev b/tools/killev
index f38cce3738..b92d0303f6 100755
--- a/tools/killev
+++ b/tools/killev
@@ -22,7 +22,7 @@
$sysname=`uname -s`;
-if ($sysname == "SunOS") {
+if ($sysname eq "SunOS") {
$killcmd="pkill";
}
else {
@@ -37,10 +37,11 @@ sub kill_exe {
printf ("killing $exe_name\n");
- `$killcmd -9 $exe_name 2> /dev/null`;
- `$killcmd -9 $lt_name 2> /dev/null`;
- `$killcmd -9 $sub_exe_name 2> /dev/null`;
- `$killcmd -9 $sub_lt_name 2> /dev/null`;
+ $redirect = "2> /dev/null";
+ `$killcmd -9 $exe_name $redirect`;
+ `$killcmd -9 $lt_name $redirect`;
+ `$killcmd -9 $sub_exe_name $redirect`;
+ `$killcmd -9 $sub_lt_name $redirect`;
}
sub kill_exes {