Skip to content

Commit

Permalink
Fix dead processes
Browse files Browse the repository at this point in the history
Bench: 12004127
  • Loading branch information
SzilBalazs committed Aug 26, 2023
1 parent cde10e8 commit c5bdcdb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/uci/uci.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,9 @@ namespace uci {

while (should_continue) {
std::string line;
getline(std::cin, line);

if (std::cin.eof()) {
break;
if (!getline(std::cin, line) && std::cin.eof()) {
line = "quit";
}

std::vector<std::string> tokens = convert_to_tokens(line);
Expand Down

0 comments on commit c5bdcdb

Please sign in to comment.