0

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

0

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
  • 814,905
  • 225
  • 1,535
  • 1,899