fix: Add PROT_READ to ctfser mmap flags
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 15 May 2019 18:49:14 +0000 (14:49 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 15 May 2019 20:09:57 +0000 (16:09 -0400)
commit9223d1f36459ed833b1c4ce11001846d6b1d4e9d
tree3daeb4611d9c165899dbcd9fc36ff2c8949ff69a
parent90e1eb09bdf90abdeb304e6d442978736f411e21
fix: Add PROT_READ to ctfser mmap flags

On Linux PROT_WRITE implies PROT_READ but on other Unices like Solaris,
it's not the case. This resulted in a segfault when reading from the
mapping.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Change-Id: If11bbcf32e33bf5e682afaade2d3769a141c6583
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1302
Reviewed-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Tested-by: jenkins
ctfser/ctfser.c
This page took 0.024969 seconds and 4 git commands to generate.