clear();
refresh();
endwin ();
- signal(SIGWINCH, SIG_DFL);
/* first run the generic "do these when a game is started" commands */
dgl_exec_cmdqueue(globalconfig.cmdqueue[DGLTIME_GAMESTART], userchoice, me);
myconfig[userchoice]->bin_args[i] = tmpstr;
}
- signals_block();
+ signal(SIGWINCH, SIG_DFL);
+ signal(SIGINT, SIG_DFL);
+ signal(SIGQUIT, SIG_DFL);
+ signal(SIGTERM, SIG_DFL);
idle_alarm_set_enabled(0);
/* launch program */
ttyrec_main (userchoice, me->username,
dgl_format_str(userchoice, me, myconfig[userchoice]->ttyrecdir, NULL),
gen_ttyrec_filename());
-
+ idle_alarm_set_enabled(1);
/* lastly, run the generic "do these when a game is left" commands */
+ signal (SIGHUP, catch_sighup);
+ signal (SIGINT, catch_sighup);
+ signal (SIGQUIT, catch_sighup);
+ signal (SIGTERM, catch_sighup);
+ signal(SIGWINCH, sigwinch_func);
+
dgl_exec_cmdqueue(globalconfig.cmdqueue[DGLTIME_GAMEEND], userchoice, me);
- idle_alarm_set_enabled(1);
- signals_release();
setproctitle ("%s", me->username);
initcurses ();