diff options
Diffstat (limited to 'Userland/sh.cpp')
-rw-r--r-- | Userland/sh.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Userland/sh.cpp b/Userland/sh.cpp index 0cd80c8628..441dcbd798 100644 --- a/Userland/sh.cpp +++ b/Userland/sh.cpp @@ -415,9 +415,10 @@ int main(int argc, char** argv) return 0; if (nread < 0) { if (errno == EINTR) { - ASSERT(g->was_interrupted); - if (linedx != 0) - printf("^C"); + if (g->was_interrupted) { + if (linedx != 0) + printf("^C"); + } g->was_interrupted = false; linebuf[0] = '\0'; linedx = 0; |