[pulseaudio-commits] r2350 - /branches/glitch-free/src/daemon/main.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri May 2 06:08:16 PDT 2008


Author: tanuk
Date: Fri May  2 15:08:15 2008
New Revision: 2350

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2350&root=pulseaudio&view=rev
Log:
Fix setrlimit() return value comparsion.

Modified:
    branches/glitch-free/src/daemon/main.c

Modified: branches/glitch-free/src/daemon/main.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/daemon/main.c?rev=2350&root=pulseaudio&r1=2349&r2=2350&view=diff
==============================================================================
--- branches/glitch-free/src/daemon/main.c (original)
+++ branches/glitch-free/src/daemon/main.c Fri May  2 15:08:15 2008
@@ -493,7 +493,7 @@
                 else {
                     rl.rlim_max = rl.rlim_cur = 9;
 
-                    if (setrlimit(RLIMIT_RTPRIO, &rl) < 0) {
+                    if (setrlimit(RLIMIT_RTPRIO, &rl) >= 0) {
                         pa_log_info("Successfully increased RLIMIT_RTPRIO");
                         drop = TRUE;
                     } else




More information about the pulseaudio-commits mailing list