mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +00:00
Kernel: Move process coredump metadata modification to the prctl syscall
This commit is contained in:
parent
822164a686
commit
be1d7c325a
8 changed files with 17 additions and 38 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <AK/Format.h>
|
||||
#include <Kernel/API/prctl_numbers.h>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -29,7 +30,7 @@ void __assertion_failed(char const* msg)
|
|||
{ "assertion", strlen("assertion") },
|
||||
{ msg, strlen(msg) },
|
||||
};
|
||||
syscall(SC_set_coredump_metadata, ¶ms);
|
||||
syscall(SC_prctl, PR_SET_COREDUMP_METADATA_VALUE, ¶ms, nullptr);
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue