But clear the buffer on ^C

This commit is contained in:
Kevin Lange 2013-04-27 01:16:17 -07:00
parent b575e5e2e4
commit 6aa623216d

View File

@ -1338,6 +1338,7 @@ int buffer_put(char c) {
}
if (c == 3) {
syscall_send_signal(child_pid, 2);
clear_buffer();
return 0;
}
if (c < 10 || (c > 10 && c < 32) || c > 126) {