diff options
Diffstat (limited to 'monkey/dispatch.c')
-rw-r--r-- | monkey/dispatch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/monkey/dispatch.c b/monkey/dispatch.c index ba15fbd13..4329ca100 100644 --- a/monkey/dispatch.c +++ b/monkey/dispatch.c @@ -58,8 +58,8 @@ monkey_process_command(void) char **nargv; if (fgets(buffer, PATH_MAX, stdin) == NULL) { - netsurf_quit = true; - return; + /* end of input or read error so issue QUIT */ + sprintf(buffer, "QUIT\n"); } /* remove newline */ |