diff options
-rw-r--r-- | fq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fq.c b/fq.c index 1a702d6..ebfe6f8 100644 --- a/fq.c +++ b/fq.c @@ -162,8 +162,10 @@ main(int argc, char *argv[]) /* skip not running jobs, unless -a was passed, or we did not * output anything yet and are at the last argument. */ - if (!aflag && !islocked(fd) && (didsth || i != argc - 1)) + if (!aflag && !islocked(fd) && (didsth || i != argc - 1)) { + close(fd); continue; + } write(1, "==> ", 4); write(1, argv[i], strlen(argv[i])); |