ok i need some help🤗
i have a multithreaded c application.. i run into an error where i can not allocate more shared memory so i call the fatal error handler.. so far so good, error detected.. now in the error handler i want to
- log some message
- write a coredum
- end all processes i.e terminate the application
i do this by sending a sigterm to all processes in the group with:
kill(0, SIGTERM)
and then next call is
abort()
(this should dumpe the core)
however it looks like the process never reaches abort, i dont see a coredump ...
looks like it receives the SIGTERM before SIGABORT
how can achieve my goal?
#asknostr #programming #c #linux