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)
            {
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"

Reply via email to