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)
{
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"