ignore the TSTP signal
how to ignore the TSTP signal in script so that Ctrl-Z deactivate on the script.
Tried below sigtstp() { echo "SIGTSTP received" > /dev/tty trap - TSTP echo "SIGTSTP standard handling restored" } trap - sigtstp using above if i Ctrl-Z, it stops the script (without prompt hanging),as without above lines ctrl-Z was hanging prompt but i want the script should not even stop and the signal should ignored compeletly. Tried these as well but no luck (prompt hangs) trap : TSTP # ignore Ctrl-Z requests trap - TSTP # allow Ctrl-Z requests please suggest |
All times are GMT -5. The time now is 09:24 PM. |