6f949e90b1ba3de976455fbcf9da21897761d134
markd
  Fri Oct 29 16:11:58 2021 -0700
add timeout option to pipeline to allow kill long-running pipelines, especially ones run from CGIs

diff --git src/hg/utils/hubClone/hubClone.c src/hg/utils/hubClone/hubClone.c
index fa5c049..5ef81c9 100644
--- src/hg/utils/hubClone/hubClone.c
+++ src/hg/utils/hubClone/hubClone.c
@@ -140,31 +140,31 @@
                 if (relName != NULL)
                     {
                     relName = relName + 1;
                     dyStringPrintf(fname, "%s%s", downloadDir, relName);
                     }
                 else
                     {
                     relName = hel->val;
                     dyStringPrintf(fname, "%s%s", downloadDir, (char *)hel->val);
                     }
                 fprintf(out, "%s %s\n", hel->name, relName);
                 char *cmd[] = {"wget", "-q", "-O", dyStringContents(fname), urlToData, NULL};
 
                 // use pipelineNoAbort so the loop continues if a url is typo'd or something,
                 // but still warn the user
-                struct pipeline *pl = pipelineOpen1(cmd, pipelineWrite | pipelineNoAbort, "/dev/null", NULL);
+                struct pipeline *pl = pipelineOpen1(cmd, pipelineWrite | pipelineNoAbort, "/dev/null", NULL, 0);
                 int ret = pipelineWait(pl);
                 if (ret != 0)
                     {
                     warn("wget failed for url: %s", urlToData);
                     }
                 }
             else
                 fprintf(out, "%s %s\n", hel->name, urlToData);
             }
         else
             fprintf(out, "%s %s\n", hel->name, (char *)hel->val);
         }
     }
 fprintf(out, "\n");
 hashElFreeList(&helList);