This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
- version 2 as ammended with additional clauses defined in the
+ version 2 as amended with additional clauses defined in the
file LICENSE in the main source directory.
This program is distributed in the hope that it will be useful,
Dmsg2(050, "watchdog %p term PID %d\n", self, wid->pid);
- /* Kill -TERM the specified PID, and reschedule a -KILL for 3 seconds
- * later.
+ /* Kill -TERM the specified PID, and reschedule a -KILL for 5 seconds
+ * later. (Warning: this should let dvd-writepart enough time to term
+ * and kill growisofs, which takes 3 seconds, so the interval must not
+ * be less than 5 seconds)
*/
kill(wid->pid, SIGTERM);
- self->interval = 3;
+ self->interval = 5;
} else {
/* This is the second call - terminate with prejudice. */
Dmsg2(050, "watchdog %p kill PID %d\n", self, wid->pid);
wid->wd->interval = wait;
register_watchdog(wid->wd);
- Dmsg4(50, "Start bsock timer %p tid=%p for %d secs at %d\n", wid,
+ Dmsg4(950, "Start bsock timer %p tid=%p for %d secs at %d\n", wid,
wid->tid, wait, time(NULL));
return wid;
Dmsg0(900, "stop_bsock_timer called with NULL btimer_id\n");
return;
}
- Dmsg3(50, "Stop bsock timer %p tid=%p at %d.\n", wid, wid->tid, time(NULL));
+ Dmsg3(950, "Stop bsock timer %p tid=%p at %d.\n", wid, wid->tid, time(NULL));
stop_btimer(wid);
}
static void stop_btimer(btimer_t *wid)
{
if (wid == NULL) {
- Emsg0(M_ABORT, 0, "stop_btimer called with NULL btimer_id\n");
+ Emsg0(M_ABORT, 0, _("stop_btimer called with NULL btimer_id\n"));
}
unregister_watchdog(wid->wd);
free(wid->wd);