changeset 286:3b61f1dfcc91

UltraRogue: don't swap signal handlers. In md_shellescape(), signal handlers for SIGINT and SIGQUIT were saved and restored, but exchanged in the process. This was fixed in the other games by commit 600873555ec0. Deleting md_shellescape() might have been a better fix. It is apparently unused.
author John "Elwin" Edwards
date Fri, 29 Sep 2017 21:21:50 -0400
parents 17005af49963
children 0b3d1b38998f
files urogue/mdport.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/urogue/mdport.c	Sat Sep 23 09:47:00 2017 -0400
+++ b/urogue/mdport.c	Fri Sep 29 21:21:50 2017 -0400
@@ -397,9 +397,9 @@
         while (wait(&ret_status) != pid)
             continue;
 	    
-        signal(SIGINT, myquit);
+        signal(SIGINT, myend);
 #ifdef SIGQUIT
-        signal(SIGQUIT, myend);
+        signal(SIGQUIT, myquit);
 #endif
     }