summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-09-05 03:18:36 +0200
committerLennart Poettering <lennart@poettering.net>2008-09-05 03:18:36 +0200
commit89ed50750e46486ba06638f15f3bb32e92e5c903 (patch)
tree31476e944783fc70fdef792863048101f79169ef /src
parentf52fb64313fd423cd085f7b53ce5663c0c17d382 (diff)
if we are exiting due to cpu overload, say so via syslog, too
Diffstat (limited to 'src')
-rw-r--r--src/daemon/cpulimit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon/cpulimit.c b/src/daemon/cpulimit.c
index 59552828..a909600e 100644
--- a/src/daemon/cpulimit.c
+++ b/src/daemon/cpulimit.c
@@ -167,6 +167,8 @@ static void callback(pa_mainloop_api*m, pa_io_event*e, int fd, pa_io_event_flags
pa_assert(e == io_event);
pa_assert(fd == the_pipe[0]);
+ pa_log("Recevied request to terminate due to CPU overload.");
+
pa_read(the_pipe[0], &c, sizeof(c), NULL);
m->quit(m, 1); /* Quit the main loop */
}