Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2012 07:10:37 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r232957 - stable/8/contrib/top
Message-ID:  <201203140710.q2E7Abcc082636@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 	    {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203140710.q2E7Abcc082636>