]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: Fix shm initialization race-condition
authorIsmael Luceno <ismael@iodev.co.uk>
Mon, 22 Aug 2016 16:04:33 +0000 (13:04 -0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Aug 2016 16:10:40 +0000 (18:10 +0200)
commit7640856769d2d687877df720af5ef1ecd8938888
treead0d8377f481b016d842fb960d4d47cce7e84d90
parente2cfe3c6c8483c27b60d9b64e760ba3e8c8a1d43
pcm: Fix shm initialization race-condition

Easily seen when two threads try at the same time, one of them will fail.

The bug was identified by using apulse with Skype.

Fixes: dec428c35221 ("pcm: fix 'unable to create IPC shm instance' caused by fork from a thread")
Fixes: https://github.com/i-rinat/apulse/issues/38
Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_direct.c