1

I want to make a core when my process receive the SIGKILL in linux. I try to caught this signal, but it seems that SIGKILL can't be catch.

1 Answers1

1

That is correct, As per the man page for sigaction:

signum specifies the signal and can be any valid signal except SIGKILL and SIGSTOP.

This has pretty much been the case forever, you really don't want to give a process the ability to handle all signals since that would allow you to get to a point where it can only be killed by a power cycle :-)

paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953