Browse Source

okay, handle Ctrl+D a.k.a. EOF also as quit signal. #close JSON-43

JSON-57
Roker 5 years ago
parent
commit
46f806a725
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      server/main.cc

+ 1
- 1
server/main.cc View File

@ -66,7 +66,7 @@ try
std::cout << "Press <Q> <Enter> to quit." << std::endl;
input = std::cin.get();
std::cout << "Oh, I got a '" << input << "'. \n";
}while(input != 'q' && input != 'Q');
}while(std::cin && input != 'q' && input != 'Q');
}else{
do{
sleep(3);


Loading…
Cancel
Save