expand: Make glob(3) interruptible by SIGINT
commita09fe58449971226a885cc72e5983121cbc53e97
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 2 Jun 2020 11:51:15 +0000 (2 21:51 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 8 Jul 2020 06:58:29 +0000 (8 16:58 +1000)
treee1be826f34434048103927e74f1da5904316dc06
parent7638476c18f2a8451b05d49f4e767ee1f98cfc17
expand: Make glob(3) interruptible by SIGINT

If glob(3) is used then it can't be interrupted by SIGINT.  This
is bad when an expansion causes a large number of entries to be
generated.  This patch improves things by adding an int_pending
check to gl_opendir call.  Note that this is still not perfect,
e.g., the sort would still be uninterruptible.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
configure.ac
src/expand.c