Revision: 14799
          http://sourceforge.net/p/edk2/code/14799
Author:   jcarsey
Date:     2013-10-24 17:29:33 +0000 (Thu, 24 Oct 2013)
Log Message:
-----------
ShellPkg: Stop running command when page break quit

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <[email protected]>
Reviewed-by: Jaben Carsey <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ShellPkg/Application/Shell/ConsoleLogger.c

Modified: trunk/edk2/ShellPkg/Application/Shell/ConsoleLogger.c
===================================================================
--- trunk/edk2/ShellPkg/Application/Shell/ConsoleLogger.c       2013-10-24 
11:49:32 UTC (rev 14798)
+++ trunk/edk2/ShellPkg/Application/Shell/ConsoleLogger.c       2013-10-24 
17:29:33 UTC (rev 14799)
@@ -1,6 +1,7 @@
 /** @file
   Provides interface to shell console logger.
 
+  Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
   Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD 
License
@@ -640,6 +641,10 @@
   } else if (*Resp == ShellPromptResponseQuit) {
     FreePool(Resp);
     ShellInfoObject.ConsoleInfo->Enabled = FALSE;
+    //
+    // When user wants to quit, the shell should stop running the command.
+    //
+    gBS->SignalEvent (ShellInfoObject.NewEfiShellProtocol->ExecutionBreak);
     return (EFI_DEVICE_ERROR);
   } else {
     ASSERT(FALSE);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to