From: Kern Sibbald Date: Sat, 20 Mar 2010 14:48:42 +0000 (+0100) Subject: Add 5 minute timout to alert directive -- fixes bug #1536 X-Git-Tag: Release-7.0.0~2047 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fffd62939e4fd036baf2d1384d8c458dca58dcfe;p=bacula%2Fbacula Add 5 minute timout to alert directive -- fixes bug #1536 --- 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);