25 May
2009
25 May
'09
11:25 p.m.
Takashi Iwai wrote:
OK, I see the problem now, too. In practice, you can get a file descriptor from poll descriptor, but this doesn't cover all underlying fds. A new API function or an additional SND_PCM_* flag for snd_pcm_open() would be needed, indeed.
In the latter case, it must be easy -- just pass O_CLOEXEC flag to open() call...
That handles the close on exec well, but we are talking about forks here. There is not necessarily an exec involved in the child process.
Wkr,
Werner,-
--
Dr. Werner Van Belle
http://werner.yellowcouch.org/