svn commit: r232957 - stable/8/contrib/top

Konstantin Belousov kib at FreeBSD.org
Wed Mar 14 07:10:37 UTC 2012


Author: kib
Date: Wed Mar 14 07:10:36 2012
New Revision: 232957
URL: http://svn.freebsd.org/changeset/base/232957

Log:
  MFC r232660:
  In batch mode, exit after receiving SIGINT, instead of immediate
  output of the next display.

Modified:
  stable/8/contrib/top/top.c
Directory Properties:
  stable/8/contrib/top/   (props changed)

Modified: stable/8/contrib/top/top.c
==============================================================================
--- stable/8/contrib/top/top.c	Wed Mar 14 07:08:15 2012	(r232956)
+++ stable/8/contrib/top/top.c	Wed Mar 14 07:10:36 2012	(r232957)
@@ -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-stable mailing list