diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shell.c.in b/src/shell.c.in index b8c247cc2..56f63fb19 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -12732,7 +12732,11 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){ sqlite3_fprintf(stderr, "attach debugger to process %d and press ENTER to continue...", GETPID()); - sqlite3_fgets(zLine, sizeof(zLine), stdin); + if( sqlite3_fgets(zLine, sizeof(zLine), stdin)!=0 + && cli_strcmp(zLine,"stop")==0 + ){ + exit(1); + } }else{ #if defined(_WIN32) || defined(WIN32) #if SQLITE_OS_WINRT |