From 4982492acd29066380ae2fcb435ecae20fab403a Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 20 Mar 2010 15:48:42 +0100 Subject: [PATCH] Add 5 minute timout to alert directive -- fixes bug #1536 --- bacula/src/stored/acquire.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bacula/src/stored/acquire.c b/bacula/src/stored/acquire.c index 3ab87943e6..eb5fc5bcd8 100644 --- a/bacula/src/stored/acquire.c +++ b/bacula/src/stored/acquire.c @@ -528,7 +528,8 @@ bool release_device(DCR *dcr) char line[MAXSTRING]; alert = get_pool_memory(PM_FNAME); alert = edit_device_codes(dcr, alert, dcr->device->alert_command, ""); - bpipe = open_bpipe(alert, 0, "r"); + /* Wait maximum 5 minutes */ + bpipe = open_bpipe(alert, 60 * 5, "r"); if (bpipe) { while (fgets(line, sizeof(line), bpipe->rfd)) { Jmsg(jcr, M_ALERT, 0, _("Alert: %s"), line); -- 2.39.5