[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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
this hang (I believe some real-time signals are being blocked, which are
necessary for kFreeBSD's threads implementation, LinuxThreads, to work
properly);

2. before printing 'Daemon startup failed' - this happens approx. 10x
less frequently (so applying the patch is already an improvement) - I'm
not sure yet what causes this.

Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org
Index: pulseaudio-2.0/src/pulsecore/core-util.c
===================================================================
--- pulseaudio-2.0.orig/src/pulsecore/core-util.c	2012-05-13 14:26:37.000000000 +0100
+++ pulseaudio-2.0/src/pulsecore/core-util.c	2013-04-15 20:12:15.061854000 +0100
@@ -2492,7 +2492,8 @@
 }
 
 int pa_unblock_sigsv(const int except[]) {
-#ifndef OS_IS_WIN32
+/* :XXX: kFreeBSD bug #705435 */
+#if !defined(OS_IS_WIN32) && !defined(__FreeBSD_kernel__)
     int i;
     sigset_t ss;
 

Reply to: