Difference between Enhancement Methods (SIGABRT) and abort ()

I know that both the raise(SIGABRT) and abort() methods will send a SIGABRT signal for themselves. But there is a difference between these two functions. (for example, - the abort() function blocks the signal SIGABRT, where as raise(SIGABRT) not.)

What are the other differences between raise(SIGABRT) and abort() methods

+2
source share
1 answer

The main difference is that abort() even terminates the process if SIGABRT ignored.

Verbatim from man abort :

If the SIGABRT signal is ignored or caught by the handler that returns, the abort () function will still terminate the process. He does this by restoring the default location for SIGABRT , and then raising the signal for a second time.

+3
source

Source: https://habr.com/ru/post/1200312/


All Articles