]> git.lttng.org Git - lttng-ust.git/commitdiff
freebsd port: use a leading / prefix for shm tmp name
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Feb 2012 16:20:28 +0000 (11:20 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Feb 2012 16:20:28 +0000 (11:20 -0500)
FreeBSD complains if the leading / is missing.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/shm.c

index 4afb0c6e25b57f0083d1feb4532b54cbb2b612ec..c10e58a23cc281fb06128c93d16697efc2d0b019 100644 (file)
@@ -36,7 +36,7 @@ struct shm_object *shm_object_table_append(struct shm_object_table *table,
        int shmfd, waitfd[2], ret, i, sigblocked = 0;
        struct shm_object *obj;
        char *memory_map;
-       char tmp_name[NAME_MAX] = "ust-shm-tmp-XXXXXX";
+       char tmp_name[NAME_MAX] = "/ust-shm-tmp-XXXXXX";
        sigset_t all_sigs, orig_sigs;
 
        if (table->allocated_len >= table->size)
This page took 0.029708 seconds and 4 git commands to generate.