Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SIGKILL & SIGTERM are signals sent by shutdown but i am not able to catch these signals when all terminals are killed ...i want a program that could catch signal sent by linux os on shutdown or logout
Posted

1 solution

Read the Linux man pages for signal(). One sample can be found here[^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-Feb-11 17:19pm    
Good, my 5. That should cover to topic.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900