Disable status script timer on reload (instead of ignoring signal)

This commit is contained in:
Philippe Pepiot 2011-01-04 01:24:51 +01:00
parent 99e85cbfc2
commit c817b7277b

View File

@ -269,7 +269,10 @@ void
uicb_reload(uicb_t cmd)
{
(void)cmd;
signal(SIGALRM, SIG_IGN);
struct itimerval notimer = { { 0, 0}, { 0, 0 } };
/* disable status timer */
if (estatus)
setitimer(ITIMER_REAL, &notimer, NULL);
quit();
for(; argv_global[0] && argv_global[0] == ' '; ++argv_global);