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.
            Asked
            
        
        
            Active
            
        
            Viewed 1,078 times
        
    1
            
            
        - 
                    You are correct. `SIGKILL` cannot be caught. That's how Linux and Unix have worked for the last 50 years, or so. I, somehow, doubt that this will ever change. – Sam Varshavchik Feb 19 '20 at 03:28
- 
                    Thanks! I think that is not a good idea. i'll try some other method. – user9280007 Feb 20 '20 at 03:34
1 Answers
1
            That is correct, As per the man page for sigaction:
signumspecifies the signal and can be any valid signal exceptSIGKILLandSIGSTOP.
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
