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

Reply via email to