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/lib/customAdjacency.c src/hg/lib/customAdjacency.c index 1dbb6a3..65349b7 100644 --- src/hg/lib/customAdjacency.c +++ src/hg/lib/customAdjacency.c @@ -148,31 +148,31 @@ dyStringPrintf(tmpDy, "-maxChromNameLength=%d", track->maxChromName); cmd1[index++] = dyStringCannibalize(&tmpDy); cmd1[index++] = CUSTOM_TRASH; cmd1[index++] = track->dbTableName; cmd1[index++] = "stdin"; assert(index <= ArraySize(cmd1)); /* the "/dev/null" file isn't actually used for anything, but it is used * in the pipeLineOpen to properly get a pipe started that isn't simply * to STDOUT which is what a NULL would do here instead of this name. * This function exits if it can't get the pipe created * The dbStderrFile will get stderr messages from hgLoadBed into the * our private error log so we can send it back to the user */ return pipelineOpen1(cmd1, pipelineWrite | pipelineNoAbort, - "/dev/null", track->dbStderrFile); + "/dev/null", track->dbStderrFile, 0); } //struct adjacency *adjacencyLineFileLoad(char **row, struct lineFile *lf); void customFactoryCheckChromNameDb(char *genomeDb, char *word, struct lineFile *lf); void pipelineFailExit(struct customTrack *track); /* customTrackAdjacency load item */ static struct adjacency *customTrackAdjacency(char *db, char **row, struct hash *chromHash, struct lineFile *lf) /* Convert a row of strings to adjacency. */ { //struct adjacency *item = adjacencyLineFileLoad(row, lf); struct adjacency *item = adjacencyLoad(row); hashStoreName(chromHash, item->chrom);