Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 29 Feb 2016 22:38:18 +0000 (23:38 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 29 Feb 2016 22:38:18 +0000 (23:38 +0100)
src/smpi/smpi_bench.cpp

index c7c1dc1..516d22a 100644 (file)
@@ -490,7 +490,7 @@ void *smpi_shared_malloc(size_t size, const char *file, int line)
       // The insertion did not take place.
       // Generate a shared memory name from the address of the shared_data:
       char shmname[256];
-      sprintf(shmname, "smpi_shared_malloc_%p", &*data);
+      sprintf(shmname, "/smpi_shared_malloc_%p", &*data);
       fd = shm_open(shmname, O_RDWR | O_CREAT | O_EXCL,
                     S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
       if (fd < 0) {