Mailing List archive

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

[vdr] Re: bitstreamout-0.48pre7



Should be able to run as non-root too.

--- shm_memory_tool.c~    Mon Oct 20 15:01:07 2003
+++ shm_memory_tool.c     Wed Nov  5 18:17:56 2003
@@ -1,4 +1,5 @@

+#include <unistd.h>
 #include "shm_memory_tool.h"

 static cList<PointerShmFdListObject> SHMMemoryMappings;
@@ -40,7 +41,7 @@
        goto err;
     }

-    if ( ( flags & MAP_LOCKED ) != 0 ) {
+    if ( ( ( flags & MAP_LOCKED ) != 0 ) && ( getuid() == 0 ) ) {
        if ( mlock( ptr, size ) != 0 ) {
                esyslog("shm_open mlock of %s to size %d failed: %s\n",
                         name, size, strerror(errno));

=== end of patch ===



-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index