Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2012 06:56:55 +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-9@freebsd.org
Subject:   svn commit: r232955 - stable/9/contrib/top
Message-ID:  <201203140656.q2E6utZi082117@svn.freebsd.org>

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



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