Commit 8969ea3e authored by Simon Glass's avatar Simon Glass Committed by Tom Rini

sandbox: Disable Ctrl-C

This is not supported properly on sandbox, and interferes with running
tests, since when a test script is piped in, some commands will call
ctrlc() which will drop characters from the test script.
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent b8450521
......@@ -524,6 +524,7 @@ static int ctrlc_disabled = 0; /* see disable_ctrl() */
static int ctrlc_was_pressed = 0;
int ctrlc(void)
{
#ifndef CONFIG_SANDBOX
if (!ctrlc_disabled && gd->have_console) {
if (tstc()) {
switch (getc()) {
......@@ -535,6 +536,8 @@ int ctrlc(void)
}
}
}
#endif
return 0;
}
/* Reads user's confirmation.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment