- {
- /* if we see an abort after "idle" time, count it */
- if (c == ABT_ESC && time.tv_sec >= sc->sc_lasttime + ABT_WAIT) {
- sc->sc_abortcount++;
- /* record when the first abort escape arrived */
- if (sc->sc_abortcount == 1)
- sc->sc_starttime = time.tv_sec;
- }
- /*
- * if we have an abort, see that we have not run out of time,
- * or that we have an "idle" time after the complete escape
- * sequence
- */
- if (sc->sc_abortcount) {
- if (time.tv_sec >= sc->sc_starttime + ABT_RECYCLE)
+ if (sc->sc_if.if_flags & IFF_DEBUG) {
+ if (c == ABT_ESC) {
+ /*
+ * If we have a previous abort, see whether
+ * this one is within the time limit.
+ */
+ if (sc->sc_abortcount &&
+ time.tv_sec >= sc->sc_starttime + ABT_WINDOW)