]> git.lttng.org Git - ust.git/commit
libringbuffer shm: be resilient to app crash between shm_open and shm_unlink
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 26 Aug 2011 12:54:14 +0000 (08:54 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 26 Aug 2011 12:54:14 +0000 (08:54 -0400)
commit616d144a2f9a1fcdadabc25e24f73c1a7ed2d4dc
tree8e744edffbe6136068f2e895985a01b28eace906
parent40930dac68deca53d9948f1618215650973e1a41
libringbuffer shm: be resilient to app crash between shm_open and shm_unlink

Leak at most a single shm if an application crashes. By unlinking the
shm before every open attempt, we are certain to never retry endlessly
in case of crash of another application between the open and unlink.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/shm.c
This page took 0.026837 seconds and 4 git commands to generate.