diff --git a/src/loop.c b/src/loop.c index f6e6b27..c16b63a 100644 --- a/src/loop.c +++ b/src/loop.c @@ -40,7 +40,7 @@ void loop() { if (feof(stdin)) { // the stdin was closed, this usually happens for CTRL-D printf("\n"); - exit(EXIT_SUCCESS); + break; } else { perror("Error: ");