Finally get rid of that highly non-standard use of SIGINT.
[gnushogi.git] / gnushogi / rawdsp.c
index 7d17287..27e558c 100644 (file)
@@ -204,6 +204,8 @@ Raw_ExitShogi(void)
 
     if (!nolist)
         ListGame();
+
+    exit(0);
 }
 
 
@@ -313,8 +315,6 @@ Raw_help(void)
            (TCflag) ? CP[93] : CP[92],
            TimeControl.moves[black], TimeControl.clock[black] / 100,
            TCadd/100, MaxSearchDepth);
-
-    signal(SIGUSR1, Raw_TerminateSearch);
 }
 
 
@@ -486,8 +486,6 @@ SetupBoard(void)
 void
 Raw_SearchStartStuff(short side)
 {
-    signal(SIGUSR1, Raw_TerminateSearch);
-
     if (flag.post)
     {
         printf(CP[123],
@@ -965,4 +963,3 @@ Raw_ShowPostnValues(void)
            mtl[opponent], pscore[opponent], GameType[opponent]);
     printf("\nhung black %d hung white %d\n", hung[black], hung[white]);
 }
-