Skip to content

Commit

Permalink
FORGE-1012 Set the console reader thread to a daemon.
Browse files Browse the repository at this point in the history
This ensures that Forge terminates immediately upon exit without requiring another keystroke to unblock the blocked reader thread on System.in

Also modified the invocation of the exit command on Ctrl+D to issue a newline upon exit to ensure that the shell prompt appears in a new line.
  • Loading branch information
VineetReynolds committed Jul 14, 2013
1 parent ae837e0 commit 345a0e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public boolean keyPress(final int key)
}
else
{
shell.print("exit");
shell.println("exit");
shutdown.fire(new Shutdown(Status.NORMAL));
}
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void run()
}
}
};

readerThread.setDaemon(true);
readerThread.start();
}

Expand Down

0 comments on commit 345a0e8

Please sign in to comment.