svn commit: r232955 - stable/9/contrib/top

Konstantin Belousov kib at FreeBSD.org
Wed Mar 14 06:56:56 UTC 2012


Author: kib
Date: Wed Mar 14 06:56:55 2012
New Revision: 232955
URL: http://svn.freebsd.org/changeset/base/232955

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

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

Modified: stable/9/contrib/top/top.c
==============================================================================
--- stable/9/contrib/top/top.c	Wed Mar 14 06:42:12 2012	(r232954)
+++ stable/9/contrib/top/top.c	Wed Mar 14 06:56:55 2012	(r232955)
@@ -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-9 mailing list