Use pa_read, pa_write and pa_poll instead of system functions
[profile/ivi/pulseaudio-panda.git] / src / daemon / cpulimit.c
index f5042a7..c1c2a6f 100644 (file)
@@ -140,7 +140,7 @@ static void signal_handler(int sig) {
             write_err("Soft CPU time limit exhausted, terminating.\n");
 
             /* Try a soft cleanup */
-            (void) write(the_pipe[1], &c, sizeof(c));
+            (void) pa_write(the_pipe[1], &c, sizeof(c), NULL);
             phase = PHASE_SOFT;
             reset_cpu_time(CPUTIME_INTERVAL_HARD);