[pulseaudio-commits] r2011 - /trunk/src/daemon/cpulimit.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Wed Oct 31 18:42:35 PDT 2007
Author: lennart
Date: Thu Nov 1 02:42:34 2007
New Revision: 2011
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2011&root=pulseaudio&view=rev
Log:
save and restore errno in sig handler
Modified:
trunk/src/daemon/cpulimit.c
Modified: trunk/src/daemon/cpulimit.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/daemon/cpulimit.c?rev=2011&root=pulseaudio&r1=2010&r2=2011&view=diff
==============================================================================
--- trunk/src/daemon/cpulimit.c (original)
+++ trunk/src/daemon/cpulimit.c Thu Nov 1 02:42:34 2007
@@ -113,6 +113,9 @@
/* The signal handler, called on every SIGXCPU */
static void signal_handler(int sig) {
+ int saved_errno;
+
+ saved_errno = errno;
pa_assert(sig == SIGXCPU);
if (phase == PHASE_IDLE) {
@@ -150,6 +153,8 @@
write_err("Hard CPU time limit exhausted, terminating forcibly.\n");
_exit(1); /* Forced exit */
}
+
+ errno = saved_errno;
}
/* Callback for IO events on the FIFO */
More information about the pulseaudio-commits
mailing list