summaryrefslogtreecommitdiff
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2008-07-12 06:20:48 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2008-07-12 06:20:48 +0000
commit2bc028300f5fe023164d68dd0a524d5dfb3d1523 (patch)
treed771cf199dbf409b002b27bc6d45f2cda3ff4f68 /usr.bin/systat
parentb985d0bac26ecfec4f4730dd8bead0cc6c572277 (diff)
Add ':q' as an alias to ':quit', to match old behaviour. Initial patch
from dlg@, this is a simpler version.
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c
index 537411e4a66..7be6527f314 100644
--- a/usr.bin/systat/main.c
+++ b/usr.bin/systat/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.40 2008/06/13 10:06:14 deraadt Exp $ */
+/* $Id: main.c,v 1.41 2008/07/12 06:20:47 canacar Exp $ */
/*
* Copyright (c) 2001, 2007 Can Erkin Acar
* Copyright (c) 2001 Daniel Hartmeier
@@ -289,7 +289,7 @@ cmd_compat(void)
need_update = 1;
return;
}
- if (strcasecmp(cmdbuf, "quit") == 0) {
+ if (strcasecmp(cmdbuf, "quit") == 0 || strcasecmp(cmdbuf, "q") == 0) {
gotsig_close = 1;
return;
}