Skip to content

Commit 148c52d

Browse files
committed
fix: process exit
1 parent 123b42c commit 148c52d

File tree

1 file changed

+3
-3
lines changed
  • pixels-cli/src/main/java/io/pixelsdb/pixels/cli

1 file changed

+3
-3
lines changed

pixels-cli/src/main/java/io/pixelsdb/pixels/cli/Main.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public static void main(String[] args)
9292
reader.setOpt(LineReader.Option.BRACKETED_PASTE);
9393

9494
String prompt = "pixels> ";
95-
String multiLineInput;
95+
String multiLineInput = "";
9696

9797
while (true)
9898
{
@@ -102,7 +102,7 @@ public static void main(String[] args)
102102
} catch (UserInterruptException e)
103103
{
104104
// Ctrl+C
105-
continue;
105+
System.exit(130);
106106
} catch (EndOfFileException e)
107107
{
108108
// Issue #631: in case of input from a file, exit at EOF.
@@ -128,7 +128,7 @@ public static void main(String[] args)
128128
inputStr.equalsIgnoreCase("-q"))
129129
{
130130
System.out.println("Bye.");
131-
break;
131+
return;
132132
}
133133

134134
if (inputStr.equalsIgnoreCase("help") || inputStr.equalsIgnoreCase("-h"))

0 commit comments

Comments
 (0)