commit | a09fe58449971226a885cc72e5983121cbc53e97 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Tue Jun 02 21:51:15 2020 +1000 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Jul 08 16:58:29 2020 +1000 |
tree | e1be826f34434048103927e74f1da5904316dc06 | |
parent | 7638476c18f2a8451b05d49f4e767ee1f98cfc17 [diff] |
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>