in reply to Force 2 'ctrl-c's to kill program
Haven't tested this, but why not use time() to record the time of the first ctrl-c and break only if the next ctrl-c has time()-$previoustime<=2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Force 2 'ctrl-c's to kill program
by albob (Sexton) on Feb 11, 2013 at 17:23 UTC | |
by jethro (Monsignor) on Feb 11, 2013 at 18:13 UTC | |
by Anonymous Monk on Feb 12, 2013 at 09:40 UTC |