[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Protect Loop Execution with Traps
From: |
Roger |
Subject: |
Re: Protect Loop Execution with Traps |
Date: |
Wed, 29 Jan 2020 15:19:07 -0500 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
>sigint_handler() {
> trap - INT
> kill -INT $$
>}
>trap sigint_handler INT
One thing to note here, I tried inserting the "trap sigint_handler INT" prior
to the loop/for/while statement (or outside of the loop) and the trap doesn't
work as you state it does for yourself.
I find I have to insert "trap sigint_handler INT" within my loop (for/while)
section of code, for the trap to work. In my eyes or for me, this works as
expected.
--
Roger
http://rogerx.sdf.org/
- Protect Loop Execution with Traps, Roger, 2020/01/28
- Re: Protect Loop Execution with Traps, Greg Wooledge, 2020/01/28
- Re: Protect Loop Execution with Traps, Roger, 2020/01/28
- Re: Protect Loop Execution with Traps, Greg Wooledge, 2020/01/28
- Re: Protect Loop Execution with Traps, Roger, 2020/01/28
- Re: Protect Loop Execution with Traps, Robert Elz, 2020/01/29
- Re: Protect Loop Execution with Traps, Greg Wooledge, 2020/01/29
- Re: Protect Loop Execution with Traps, Roger, 2020/01/29
- Re: Protect Loop Execution with Traps,
Roger <=
- Re: Protect Loop Execution with Traps, Greg Wooledge, 2020/01/29