summaryrefslogtreecommitdiffstats
path: root/src/daemon/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-21 22:56:08 +0200
committerLennart Poettering <lennart@poettering.net>2009-04-21 22:56:08 +0200
commit684b4c116c11aff8824ce12a99a16f6cb27f0661 (patch)
tree3ebfa1e6f06af04ae7f8fe80d68db5c0a511d37d /src/daemon/main.c
parent928adf412f6d568926e00831c55c8d2d574ddc61 (diff)
memtrap: hook up core to memtrap system
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r--src/daemon/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index c456e6d1..a2324516 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -87,6 +87,7 @@
#include <pulsecore/thread.h>
#include <pulsecore/once.h>
#include <pulsecore/shm.h>
+#include <pulsecore/memtrap.h>
#ifdef HAVE_DBUS
#include <pulsecore/dbus-shared.h>
#endif
@@ -961,6 +962,8 @@ int main(int argc, char *argv[]) {
pa_rtsig_configure(SIGRTMIN, SIGRTMAX-1);
#endif
+ pa_memtrap_install();
+
pa_assert_se(mainloop = pa_mainloop_new());
if (!(c = pa_core_new(pa_mainloop_get_api(mainloop), !conf->disable_shm, conf->shm_size))) {