diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2015-11-12 18:51:15 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-12-05 18:09:53 +1000 |
commit | c74495a3b217249e3a14d616b38367b6dbb006e4 (patch) | |
tree | 3b3d86f79fbd70d7d511193dd453fa02512a2b0b /src/pacman/pacman.c | |
parent | 4d2317dafb3c3aac56f9f604262d82fd1b396a19 (diff) | |
download | pacman-c74495a3b217249e3a14d616b38367b6dbb006e4.tar.xz |
extract SIGWINCH handler
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r-- | src/pacman/pacman.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 0f115c25..e1f90398 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -1107,9 +1107,12 @@ int main(int argc, char *argv[]) cleanup(1); } - /* disable progressbar if the output is redirected */ if(!isatty(fileno(stdout))) { + /* disable progressbar if the output is redirected */ config->noprogressbar = 1; + } else { + /* install signal handler to update output width */ + install_winch_handler(); } /* Priority of options: |