diff srogue/save.c @ 119:458df24e973d

srogue: use functions from mdport.c. Shell escape, passwd entries, terminal settings, and most signal handling is now done with the more portable md_* functions.
author John "Elwin" Edwards
date Wed, 30 Apr 2014 14:46:30 -0700
parents f0073eb75a6a
children d6b7c3fb37ea
line wrap: on
line diff
--- a/srogue/save.c	Sun Apr 27 08:29:14 2014 -0700
+++ b/srogue/save.c	Wed Apr 30 14:46:30 2014 -0700
@@ -42,10 +42,7 @@
  */
 ignore()
 {
-	int i;
-
-	for (i = 0; i < NSIG; i++)
-		signal(i, SIG_IGN);
+	md_ignoreallsignals();
 }
 
 /*
@@ -191,8 +188,7 @@
 	msg("");
 	rs_save_file(savef);
 	close(fnum);
-	signal(SIGINT, byebye);
-	signal(SIGQUIT, byebye);
+	md_onsignal_exit();
 	wclear(cw);
 	draw(cw);
 }