]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: Don't disable ctrlc() on sandbox if in raw mode
authorJoe Hershberger <joe.hershberger@ni.com>
Tue, 3 Jul 2018 01:06:49 +0000 (20:06 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 26 Jul 2018 19:08:17 +0000 (14:08 -0500)
commit82a115fdec875d7e8dc601fe0e1b12859814c91c
tree4dffa1c4afe2e12a4a5c70ffebf4d1c4b13583ec
parentb2f58d8ee090ccf15b1366ac46a075c02a01f4fc
sandbox: Don't disable ctrlc() on sandbox if in raw mode

In raw mode, handle ctrl-c as normal. This allows normal ctrl-c behavior
such as aborting a command that is timing out without completely
terminating the sandbox executable.

In [1], Simon disabled this.  His reason for it was that it interferes
with piping test scripts. Piping should be done in cooked mode, so this
change should still not interfere.

[1] commit 8969ea3e9f2db04a6b3675 ("sandbox: Disable Ctrl-C")

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/console.c
drivers/serial/sandbox.c