summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2020-04-15 11:05:41 -0700
committerGitHub <noreply@github.com>2020-04-15 11:05:41 -0700
commita563884af387ec445b7c9eeb009972bf40d0d3af (patch)
tree305a8679dc1f88455c0be32e004c50a496b034b3 /share
parent94aa368af8d72278715e3a56d6cd8a7704f873b0 (diff)
downloadspack-a563884af387ec445b7c9eeb009972bf40d0d3af.tar.gz
spack-a563884af387ec445b7c9eeb009972bf40d0d3af.tar.bz2
spack-a563884af387ec445b7c9eeb009972bf40d0d3af.tar.xz
spack-a563884af387ec445b7c9eeb009972bf40d0d3af.zip
`spack install` terminal output handling in foreground/background (#15723)
Makes the following changes: * (Fixes #15620) tty configuration was failing when stdout was redirected. The implementation now creates a pseudo terminal for stdin and checks stdout properly, so redirections of stdin/out/err should be handled now. * Handles terminal configuration when the Spack process moves between the foreground and background (possibly multiple times) during a build. * Spack adjusts terminal settings to allow users to to enable/disable build process output to the terminal using a "v" toggle, abnormal exit cases (like CTRL-C) could leave the terminal in an unusable state. This is addressed here with a special-case handler which restores terminal settings. Significantly extend testing of process output logger: * New PseudoShell object for setting up a master and child process and configuring file descriptor inheritance between the two * Tests for "v" verbosity toggle making use of the added PseudoShell object * Added `uniq` function which takes a list of elements and replaces any consecutive sequence of duplicate elements with a single instance (e.g. "112211" -> "121") Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions