1. onintr is only supposed to catch interrupts, not quits, so it is not surprising that QUIT still kills the lockout program. 2. to fix this: stty quit '' (initially) and stty quit '^\' (restoration)