mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
memtrap: make installation of SIGBUS handler explicit to ease integration into libraries
This commit is contained in:
parent
7b0086185f
commit
928adf412f
3 changed files with 18 additions and 23 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue