DragonFly BSD
DragonFly users List (threaded) for 2006-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

dvd+rw tools (growisofs) problem


From: "Steve O'Hara-Smith" <steve@xxxxxxxxxx>
Date: Mon, 6 Mar 2006 12:09:50 +0000

	Hi,

	I managed to get dvd+rw tools to build with a small change to
the existing pkgsrc patches (to exclude the call to mlockall for DragonFly as well as for NetBSD). Unfortunately it fails to work exiting with the error
message:

:-( failed to create thread: Resource temporarily unavailable

	Which implies pthread_create failed with an EAGAIN error. This is on 1.5.0-PREVIEW. From my (admittedly limited) understanding of pthreads the
code and the compile options seem to be correct.

	The simple patch for patches/patch-ac that got it to compile is:

--- patch-ac    1 Feb 2006 12:51:27 -0000       1.3
+++ patch-ac    5 Mar 2006 15:48:08 -0000
@@ -24,7 +24,7 @@
      nice(-20);
      /* I'd rather do it right after I allocate ring buffer and fire off
       * threads, but I'll be running without extra privileges by then:-( */
-+#ifndef __NetBSD__
++#if (!defined (__NetBSD__)) && (!defined (__DragonFly__))
      mlockall(MCL_CURRENT|MCL_FUTURE);
  #endif

-- 
C:>WIN                                      |   Directable Mirror Arrays
The computer obeys and wins.                | A better way to focus the sun
You lose and Bill collects.                 |    licences available see
                                            |    http://www.sohara.org/



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