ee2867be7e7b597f74018acd0a3a4f6d6f52658a max Thu Apr 6 11:50:35 2017 -0700 adding missing code to make gbic identify itself after bug report from Hiram, refs #14399 diff --git src/hg/lib/cgiApoptosis.c src/hg/lib/cgiApoptosis.c index 0cdcf33..6fb070c 100644 --- src/hg/lib/cgiApoptosis.c +++ src/hg/lib/cgiApoptosis.c @@ -102,30 +102,32 @@ fclose(f); chmod(trashFile, 0666); pid_t pid0 = fork(); if (0 == pid0) /* in child */ { close(STDOUT_FILENO); /* do not hang up Apache finish for parent, but apache will still wait */ expireSeconds = 0; /* no error message from this exit */ (void) signal(SIGALRM, cgiApoptosisHandler); (void) alarm(6); /* timeout here in 6 seconds */ #include "versionInfo.h" char url[1024]; char *browserName = "browser.v"; if (hIsBrowserbox()) browserName = "browserbox.v"; + if (hIsGbic()) + browserName = "browserGbic.v"; safef(url, sizeof(url), "%s%s%s%s%s%s%s", "http://", "genomewiki.", "ucsc.edu/", "cgi-bin/useCount?", "version=", browserName, CGI_VERSION); /* 6 second alarm will exit this page fetch if it does not work */ (void) htmlPageGetWithCookies(url, NULL); /* ignore return */ exit(0); } /* child of fork has done exit(0) normally or via alarm */ } /* trash file open OK */ if (expireSeconds > 0) { (void) signal(SIGALRM, cgiApoptosisHandler); (void) alarm(expireSeconds); /* CGI timeout */