isomalloc region tmp file can not be under /tmp, because it needs to be on a shared...
authorGengbin Zheng <gzheng@illinois.edu>
Sat, 26 Feb 2011 03:31:48 +0000 (21:31 -0600)
committerGengbin Zheng <gzheng@illinois.edu>
Sat, 26 Feb 2011 03:31:48 +0000 (21:31 -0600)
src/conv-core/isomalloc.c

index 797b156265ebb47fe64e297ec9e85a6898849aa4..607fa8c2cec73dc4e0741c0e6d093c2722d6b524 100644 (file)
@@ -2034,7 +2034,7 @@ static void init_ranges(char **argv)
 
             if (CmiMyNode()==0) printf("Charm++> synchronizing isomalloc memory region...\n");
 
-            sprintf(fname,"/tmp/.isomalloc.%d", CmiMyNode());
+            sprintf(fname,".isomalloc.%d", CmiMyNode());
 
               /* remove file before writing for safe */
             unlink(fname);
@@ -2065,7 +2065,7 @@ static void init_ranges(char **argv)
               int try_count;
               char fname[128];
               if (i==CmiMyNode()) continue;
-              sprintf(fname,"/tmp/.isomalloc.%d", i);
+              sprintf(fname,".isomalloc.%d", i);
               try_count = 0;
               while ((fd = open(fname, O_RDONLY)) == -1 && try_count<10000)
               {