ShellPkg: Stop running command when page break quit

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14799 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Chris Phillips
2013-10-24 17:29:33 +00:00
committed by jcarsey
parent eb5c268fb6
commit 85a3fa3ad7

View File

@ -1,6 +1,7 @@
/** @file /** @file
Provides interface to shell console logger. 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> Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
@ -640,6 +641,10 @@ ConsoleLoggerDoPageBreak(
} else if (*Resp == ShellPromptResponseQuit) { } else if (*Resp == ShellPromptResponseQuit) {
FreePool(Resp); FreePool(Resp);
ShellInfoObject.ConsoleInfo->Enabled = FALSE; 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); return (EFI_DEVICE_ERROR);
} else { } else {
ASSERT(FALSE); ASSERT(FALSE);