1
0
espelhamento de https://github.com/quitesimpleorg/asteriskify.git sincronizado 2024-11-23 08:27:50 +01:00

Disable core dumps

Esse commit está contido em:
Albert S. 2022-11-07 10:23:03 +01:00
commit 7323492836

Ver arquivo

@ -23,6 +23,7 @@
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <stdint.h>
#include <sys/prctl.h>
#define PWBUF_SIZE 256
@ -157,6 +158,12 @@ int main()
exit(EXIT_FAILURE);
}
if(prctl(PR_SET_DUMPABLE, 0) != 0)
{
fprintf(stderr, "Failed to make process not dumpable\n");
exit(EXIT_FAILURE);
}
setup_console();
allocate_pw_buf();