From e9401099487c0170193c87c12126cf719051a1c1 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Tue, 26 May 2015 20:19:15 +0200 Subject: [PATCH] [SMPI] Fixed portability issues with shm_open. - According to "man 3 shm_open", these handles should begin with a slash (/); this commit fixes that. --- src/smpi/smpi_bench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index b6b56e8740..d8630166a6 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -460,7 +460,7 @@ void *smpi_shared_malloc(size_t size, const char *file, int line) { void* mem; if (sg_cfg_get_boolean("smpi/use_shared_malloc")){ - char *loc = bprintf("%zu_%s_%d", (size_t)getpid(), file, line); + char *loc = bprintf("/%zu_%s_%d", (size_t)getpid(), file, line); int fd; shared_data_t *data; loc = smpi_shared_alloc_hash(loc); /* hash loc, in order to have something -- 2.20.1