memtrap: make installation of SIGBUS handler explicit to ease integration into libraries

This commit is contained in:
Lennart Poettering 2009-04-21 22:54:44 +02:00
parent 7b0086185f
commit 928adf412f
3 changed files with 18 additions and 23 deletions

View file

@ -35,6 +35,7 @@ int main(int argc, char *argv[]) {
pa_memtrap *m;
pa_log_set_level(PA_LOG_DEBUG);
pa_memtrap_install();
/* Create the memory map */
pa_assert_se((fd = open("sigbus-test-map", O_RDWR|O_TRUNC|O_CREAT, 0660)) >= 0);