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.
This commit is contained in:
John "Elwin" Edwards 2014-04-30 14:46:30 -07:00
parent de1e0f2759
commit 791df4324f
10 changed files with 34 additions and 115 deletions

View file

@ -42,10 +42,7 @@ STAT sbuf;
*/
ignore()
{
int i;
for (i = 0; i < NSIG; i++)
signal(i, SIG_IGN);
md_ignoreallsignals();
}
/*
@ -191,8 +188,7 @@ FILE *savef;
msg("");
rs_save_file(savef);
close(fnum);
signal(SIGINT, byebye);
signal(SIGQUIT, byebye);
md_onsignal_exit();
wclear(cw);
draw(cw);
}