* following lines run_program would not detect if the program was killed
* by the watchdog. */
if (bpipe->timer_id->killed) {
- stat1 = -EPIPE;
- pm_strcat(results, "Program killed by Bacula watchdog (timeout)\n");
+ stat1 = ETIME;
+ pm_strcat(results, _("Program killed by Bacula watchdog (timeout)\n"));
}
}
}
if (bpipe->timer_id) {
Dmsg1(100, "Run program fgets killed=%d\n", bpipe->timer_id->killed);
if (bpipe->timer_id->killed) {
- pm_strcat(tmp, "Program killed by Bacula watchdog (timeout)\n");
- stat1 = -EPIPE;
+ pm_strcat(tmp, _("Program killed by Bacula watchdog (timeout)\n"));
+ stat1 = ETIME;
break;
}
}