Skip to content

Commit

Permalink
Patched to compile without dupe download checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 1, 2008
1 parent 9177907 commit ff1ab7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nph-offload.c
Expand Up @@ -1114,9 +1114,13 @@ static pid_t cacheFork(const int sock, FILE *cacheio, const int64 max)
// we're the child.
GIsCacheProcess = 1;
debugEcho("caching process (%d) starting up!", (int) getpid());

#if GMAXDUPEDOWNLOADS > 0
if (GAllDownloads != NULL)
munmap(GAllDownloads, sizeof (DownloadRecord) * MAX_DOWNLOAD_RECORDS);
GAllDownloads = GMyDownload = NULL;
#endif

fclose(stdin);
fclose(stdout);
fclose(stderr);
Expand Down

0 comments on commit ff1ab7d

Please sign in to comment.