X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xshogi%2Fxshogi.c;fp=xshogi%2Fxshogi.c;h=ff2bdc361c7ab38d5d9f779f0b702c7c5ab62649;hb=2bc8552c79240896ed28926580c9d8aebd5693fe;hp=1d998d641f1ec12646cc62e67adb3d4840c953f3;hpb=74ba6a1c63855ebd51dbe316582a16e7ca95c0a4;p=gnushogi.git diff --git a/xshogi/xshogi.c b/xshogi/xshogi.c index 1d998d6..ff2bdc3 100644 --- a/xshogi/xshogi.c +++ b/xshogi/xshogi.c @@ -7130,23 +7130,21 @@ void DisplayTitle(char *title) -/* CHECKME: does this work? - * This routine sends a SIGINT (^C interrupt) to gnushogi to awaken it +/* + * This routine used to send a SIGINT (^C interrupt) to gnushogi to awaken it * if it might be busy thinking on our time. This normally isn't needed, * but is useful on systems where the FIONREAD ioctl doesn't work since * on those systems the gnushogi feature that lets you interrupt its thinking * just by typing a command does not work. * - * In the future, similar code could be used to stop gnushogi and make - * it move immediately when it is thinking about its own move; this could - * be useful if we want to make Backward or ForceMoves work while gnushogi - * is thinking. + * Now gnushogi periodically checks for user input without a need for + * this hack. */ void Attention(int pid) { -#if !defined(FIONREAD) +#if 0 if (localPlayer.appData.noShogiProgram || (pid == 0)) return;