From 79765ae3b283818488ac22e91d46ecda4df3d149 Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Fri, 29 Sep 2017 21:21:50 -0400 Subject: [PATCH] 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. --- urogue/mdport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urogue/mdport.c b/urogue/mdport.c index 53b86c8..0bdf242 100644 --- a/urogue/mdport.c +++ b/urogue/mdport.c @@ -397,9 +397,9 @@ md_shellescape() while (wait(&ret_status) != pid) continue; - signal(SIGINT, myquit); + signal(SIGINT, myend); #ifdef SIGQUIT - signal(SIGQUIT, myend); + signal(SIGQUIT, myquit); #endif }