Mercurial > hg > early-roguelike
comparison urogue/mdport.c @ 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 | 6376b514a30b |
| children | 5b6855d5d089 |
comparison
equal
deleted
inserted
replaced
| 285:17005af49963 | 286:3b61f1dfcc91 |
|---|---|
| 395 myquit = signal(SIGQUIT, SIG_IGN); | 395 myquit = signal(SIGQUIT, SIG_IGN); |
| 396 #endif | 396 #endif |
| 397 while (wait(&ret_status) != pid) | 397 while (wait(&ret_status) != pid) |
| 398 continue; | 398 continue; |
| 399 | 399 |
| 400 signal(SIGINT, myquit); | 400 signal(SIGINT, myend); |
| 401 #ifdef SIGQUIT | 401 #ifdef SIGQUIT |
| 402 signal(SIGQUIT, myend); | 402 signal(SIGQUIT, myquit); |
| 403 #endif | 403 #endif |
| 404 } | 404 } |
| 405 | 405 |
| 406 return(ret_status); | 406 return(ret_status); |
| 407 #endif | 407 #endif |
