Felipe Sateler, on Sun 03 Jul 2016 17:38:58 -0300, wrote: > On 3 July 2016 at 16:33, Samuel Thibault <sthiba...@debian.org> wrote: > > Felipe Sateler, on Sun 03 Jul 2016 17:31:14 -0300, wrote: > >> I think the daemonization needs to move later as well: > > > > Why? > > Because the usual protocol is "fork when ready".
? I would rather expect it to be "parent exits when ready". > > Opening the sound card before forking doesn't look like a good idea to > > me. > > Why would it be bad? Because then you have two processes which hold a file descriptor on the sound card, one will close it, and you never know what the driver would be doing. > Eg, pulseaudio opens the sound card before forking as well. Is it really? That doesn't sound really safe to me. Samuel