Message ID | Y7Z4dM091n25aUQa@gondor.apana.org.au (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Herbert Xu |
Headers | show |
Series | input: Check for int_pending while clearing input | expand |
diff --git a/src/input.c b/src/input.c index 8691617..1c83287 100644 --- a/src/input.c +++ b/src/input.c @@ -89,7 +89,8 @@ RESET { popallfiles(); basepf.unget = 0; while (basepf.lastc[0] != '\n' && - basepf.lastc[0] != PEOF) + basepf.lastc[0] != PEOF && + !int_pending()) pgetc(); }