head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.10.16.17.53.01; author ktnb; state Exp; branches; next ; commitid 5HyEBr7rCzuddJZG; desc @@ 1.1 log @gnuchess: fixed endless loop when building games/gnuchess-book @ text @$NetBSD$ On a EOF from stdin, just update the the user input rather than flagging as quit. This prevents issues with fgets(3) throwing an interrupted system call. --- src/frontend/input.cc.orig 2025-07-12 10:00:07.000000000 +0000 +++ src/frontend/input.cc @@@@ -152,7 +152,7 @@@@ void *input_func(void *arg __attribute__((unused)) ) (RealGameCnt+1)/2 + 1 ); } if (!get_line(prompt)) { - SET(flags, QUIT); + strcpy(userinputstr , "quit\n"); } SendToFrontend( userinputstr ); #ifdef HAVE_LIBREADLINE @