Bug#705435: [kfreebsd] hangs on pulseaudio --start

2013-04-16 Thread Petr Salinger
On my system the daemon fails to start in any case with 'Daemon startup failed', but that is a separate issue and less serious. There seem to be two separate places where pulseaudio --start may hang indefinitely on kfreebsd: On my system, it is slightly better: E: [(null)] client-conf-x11.c:

Bug#705435: [kfreebsd] hangs on pulseaudio --start

2013-04-15 Thread Steven Chamberlain
So far as I can tell, this bug is a race condition; on one machine I can reproduce it about 75% of the time, less often under ktrace, and never under gdb. During gdm3/GNOME startup it is called several times and almost certainly means a non-starting session. Sometimes it prints 'Daemon startup

Bug#705435: [kfreebsd] hangs on pulseaudio --start

2013-04-15 Thread Steven Chamberlain
On my system the daemon fails to start in any case with 'Daemon startup failed', but that is a separate issue and less serious. There seem to be two separate places where pulseaudio --start may hang indefinitely on kfreebsd: 1. after printing 'Daemon startup failed' - the attached patch fixes

Bug#705435: [kfreebsd] hangs on pulseaudio --start

2013-04-15 Thread Steven Chamberlain
Control: tags -1 + patch The simple task of starting a pulseaudio daemon, seems to require creation of a lockfile, using an additional thread to synchronise that, then forking, doing the same again using two more threads, and forking once more. Happily I found a much, much simpler solution in