svn commit: r232660 - head/contrib/top
Konstantin Belousov
kib at FreeBSD.org
Wed Mar 7 18:05:46 UTC 2012
Author: kib
Date: Wed Mar 7 18:05:45 2012
New Revision: 232660
URL: http://svn.freebsd.org/changeset/base/232660
Log:
In batch mode, exit after receiving SIGINT, instead of immediate
output of the next display.
Submitted by: Andrey Zonov <andrey zonov org>
MFC after: 1 week
Modified:
head/contrib/top/top.c
Modified: head/contrib/top/top.c
==============================================================================
--- head/contrib/top/top.c Wed Mar 7 14:53:53 2012 (r232659)
+++ head/contrib/top/top.c Wed Mar 7 18:05:45 2012 (r232660)
@@ -723,6 +723,10 @@ restart:
if (!interactive)
{
sleep(delay);
+ if (leaveflag) {
+ end_screen();
+ exit(0);
+ }
}
else while (no_command)
{
More information about the svn-src-all
mailing list