Quiting running process without catching TRAP signal

Hi, I would like to ask, if is it possible to quit running loop in the script any other way than catching the trap signal. Ctrl-C ends only current running instance of process but not whole script. Any clues?

logon again in a separate session

ps -ef | grep smoofy 
smoofy 20504 20108   0   Jun 01 ?           0:07 somescript

The red number is the pid in the example.

kill  20504

Change the red number to your real pid - or - turn off the trap while you are testing.

Thanks for the answer, but to do that i do not even need to quit to another session do I? I can put process in the background and kill it afterwards. What I mean is find the way how to kill the script ASAP.

Try fixing your script so it quits cleanly -- catching SIGINT itself to kill its subshells/subprocesses then quitting.