]> git.neil.brown.name Git - gta04-gsm-voice-routing.git/commitdiff
set process priority to -20 (realtime)
authorRadek Polak <psonek2@seznam.cz>
Sat, 18 Feb 2012 13:29:30 +0000 (14:29 +0100)
committerRadek Polak <psonek2@seznam.cz>
Sat, 18 Feb 2012 13:29:30 +0000 (14:29 +0100)
gsm-voice-routing.c

index a1ca33dcb33a607fe50a83a4a4e0994b796f99e8..616a8d0010ccbb3c40a3029a848f4ec377053dec 100644 (file)
@@ -345,6 +345,12 @@ int main()
     }
     fprintf(logfile, "gsm-voice-routing started\n");
 
+    /* We want realtime process priority */
+    rc = nice(-20);
+    if (rc != -20) {
+        fprintf(logfile, "nice() failed\n");
+    }
+    
     struct route_stream p0 = {
         .id = "p0",
         .pcm_name = "default",