ERROR (thread.c,225): Keine Berechtigung

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

 



On every start of the vdr I get this error message:
  Apr 2 00:33:36 vdr vdr: [2462] ERROR (thread.c,225): Keine Berechtigung
It comes from cThread::SetPriority and seems to be harmless, but annoying.
Is the attached patch the right cure?

Gerald

--- vdr-1.6.0/thread.c.orig     2009-04-08 15:33:52.000000000 +0200
+++ vdr-1.6.0/thread.c  2009-04-08 15:34:22.000000000 +0200
@@ -220,7 +220,7 @@

  void cThread::SetPriority(int Priority)
  {
-  if (setpriority(PRIO_PROCESS, 0, Priority) < 0)
+  if (setpriority(PRIO_PROCESS, getuid(), Priority) < 0)
       LOG_ERROR;
  }


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux