diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2020-04-15 11:05:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 11:05:41 -0700 |
commit | a563884af387ec445b7c9eeb009972bf40d0d3af (patch) | |
tree | 305a8679dc1f88455c0be32e004c50a496b034b3 /.mailmap | |
parent | 94aa368af8d72278715e3a56d6cd8a7704f873b0 (diff) | |
download | spack-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 '.mailmap')
0 files changed, 0 insertions, 0 deletions