printf("\n");
#endif
}
-
- signal(SIGINT, TerminateSearch);
}
if (XSHOGI)
{
- signal(SIGINT, TerminateSearch);
-
TCmoves = 40;
TCminutes = 5;
TCseconds = 0;
(TCflag) ? CP[93] : CP[92],
TimeControl.moves[black], TimeControl.clock[black] / 100,
TCadd/100, MaxSearchDepth);
-
- signal(SIGINT, Raw_TerminateSearch);
- signal(SIGQUIT, Raw_TerminateSearch);
}
void
Raw_SearchStartStuff(short side)
{
- signal(SIGINT, Raw_TerminateSearch);
- signal(SIGQUIT, Raw_TerminateSearch);
-
if (flag.post)
{
printf(CP[123],
mtl[opponent], pscore[opponent], GameType[opponent]);
printf("\nhung black %d hung white %d\n", hung[black], hung[white]);
}
-
-/* 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;