mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
memtrap: hook up core to memtrap system
This commit is contained in:
parent
928adf412f
commit
684b4c116c
3 changed files with 11 additions and 1 deletions
|
|
@ -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))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue