From 85a3fa3ad75bba980047b16892a1c180944db9f5 Mon Sep 17 00:00:00 2001 From: Chris Phillips Date: Thu, 24 Oct 2013 17:29:33 +0000 Subject: ShellPkg: Stop running command when page break quit Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14799 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Application/Shell/ConsoleLogger.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ShellPkg/Application/Shell/ConsoleLogger.c b/ShellPkg/Application/Shell/ConsoleLogger.c index 0a2b1fa5e5..c3729f16c9 100644 --- a/ShellPkg/Application/Shell/ConsoleLogger.c +++ b/ShellPkg/Application/Shell/ConsoleLogger.c @@ -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.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -640,6 +641,10 @@ ConsoleLoggerDoPageBreak( } 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); -- cgit v1.2.3