Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2012 18:05:45 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232660 - head/contrib/top
Message-ID:  <201203071805.q27I5jFg004188@svn.freebsd.org>

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



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