Ignore/Disable Ctrl-C (SIGINT) in a shell script
How do I write my trap statement in shell script to ignore SIGINT.
Reason being is that the script is used to update records in database. I want to avoid inconsistency in database when user presses Ctrl-C ...
The result should be
1. Totally ignore Ctrl-C (SIGINT) when user presses Ctrl-C
2. Continue with the rest of processing
|