9af241b92fb8bc79e31c3ffa18f254e6e4e41da6 max Wed Feb 19 18:27:48 2014 -0800 making phoneHome send a different string for the gbib, refs #11957 diff --git src/hg/lib/web.c src/hg/lib/web.c index c0b10e9..094ef56 100644 --- src/hg/lib/web.c +++ src/hg/lib/web.c @@ -888,32 +888,36 @@ struct tm *tm = localtime(&now); localTime = sqlUnixTimeToDate(&now,FALSE); /* FALSE == localtime */ fprintf(f, "%s, %s, %s %s, %s\n", scriptName, ip, localTime, tm->tm_isdst ? tzname[1] : tzname[0], trashFile); 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 */ expireSeconds = 0; /* no error message from this exit */ (void) signal(SIGALRM, cgiApoptosis); (void) alarm(6); /* timeout here in 6 seconds */ #include "versionInfo.h" char url[1024]; - safef(url, sizeof(url), "%s%s%s%s%s%s", "http://", - "genomewiki.", "ucsc.edu/", "cgi-bin/useCount?", "version=browser.v", + char *browserName = "browser.v"; + if (hHostHasPrefix("browserbox")) + browserName = "browserBox.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, cgiApoptosis); (void) alarm(expireSeconds); /* CGI timeout */ } } /* an actual CGI binary */ } /* phoneHome() */