From: Mathieu Desnoyers Date: Fri, 18 May 2012 21:07:06 +0000 (-0400) Subject: Fix: don't SIGBUS when filesystem is full X-Git-Tag: v2.1.0-rc1~83 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=3a81f31dfe668b3c56207745ca698c7db4dc0890;hp=3a81f31dfe668b3c56207745ca698c7db4dc0890;p=lttng-ust.git Fix: don't SIGBUS when filesystem is full Write zeroes into the buffer after its allocation to ensure that writes to the shm will not trigger SIGBUS upon full filesystem situations. This scenario can occur if /dev/shm is filled, e.g. by specifying too large buffers with --enable-channel. When the write() fails, the buffer creation for this channel fails. Fixes #230 Signed-off-by: Mathieu Desnoyers ---