]> git.sur5r.net Git - bacula/bacula/commitdiff
Add 5 minute timout to alert directive -- fixes bug #1536
authorKern Sibbald <kern@sibbald.com>
Sat, 20 Mar 2010 14:48:42 +0000 (15:48 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:41 +0000 (16:49 +0200)
bacula/src/stored/acquire.c

index 3ab87943e69c4b8ab5059c2b58e0cfb686c675ee..eb5fc5bcd82f88e60cf84015cb2350c8bf43d61a 100644 (file)
@@ -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);