src/hg/lib/hgRelate.c 1.27
1.27 2010/02/25 04:08:52 markd
fixed backwards logic on including pid in tmp file name
Index: src/hg/lib/hgRelate.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hgRelate.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -b -B -U 4 -r1.26 -r1.27
--- src/hg/lib/hgRelate.c 17 Feb 2010 08:53:20 -0000 1.26
+++ src/hg/lib/hgRelate.c 25 Feb 2010 04:08:52 -0000 1.27
@@ -178,11 +178,11 @@
tmpDir = getenv("TMPDIR");
if (tmpDir == NULL)
tmpDir = "/var/tmp";
if (inclPid)
- safef(path, PATH_LEN, "%s/%s.tab", tmpDir, tableName);
-else
safef(path, PATH_LEN, "%s/%s.%d.tab", tmpDir, tableName, getpid());
+else
+ safef(path, PATH_LEN, "%s/%s.tab", tmpDir, tableName);
}
FILE *hgCreateTabFile(char *tmpDir, char *tableName)
/* Open a tab file with name corresponding to tableName in tmpDir. If tmpDir is NULL,