4 Nov
2009
4 Nov
'09
7:38 p.m.
Hello,
The device nodes opened by alsa-lib are private, and are not meant to be used after exec(). Setting the close-on-exec flags avoid leaking devices file descriptors into unintended processes. Further more, the Linux kernel O_CLOEXEC flag is used if available for fully thread-safe operations.
configure.in | 2 ++ include/local.h | 23 +++++++++++++++++------ src/control/control_hw.c | 11 ----------- src/hwdep/hwdep_hw.c | 11 ----------- src/pcm/pcm_hw.c | 12 ------------ src/rawmidi/rawmidi_hw.c | 11 ----------- src/seq/seq_hw.c | 11 ----------- src/timer/timer_hw.c | 11 ----------- 8 files changed, 19 insertions(+), 73 deletions(-)
--
Rémi Denis-Courmont
http://www.remlab.net/