diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-02-02 18:31:59 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-02-03 08:04:08 -0300 |
commit | a9d35765728cbc5b66af5eeda5428298bccf9b69 (patch) | |
tree | 95218a2dedd1ba81e1641f639dcb6f55f5f89795 /posix/tstgetopt.c | |
parent | e8faf48321aa47f7d5e4690acf051db3d98467d7 (diff) | |
download | glibc-a9d35765728cbc5b66af5eeda5428298bccf9b69.tar.gz glibc-a9d35765728cbc5b66af5eeda5428298bccf9b69.tar.xz glibc-a9d35765728cbc5b66af5eeda5428298bccf9b69.zip |
posix: Fix tst-spawn6 terminal handling (BZ #28853)
The test changes the current foreground process group, which might break testing depending of how the make check is issued. For instance: nohup make -j1 test t=posix/tst-spawn6 | less Will set 'make' and 'less' to be in the foreground process group in the current session. When tst-spawn6 new child takes over it becomes the foreground process and 'less' is stopped and backgrounded which interrupts the 'make check' command. To fix it a pseudo-terminal is allocated, the test starts in new session (so there is no controlling terminal associated), and the pseudo-terminal is set as the controlling one (similar to what login_tty does). Checked on x86_64-linux-gnu. Tested-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'posix/tstgetopt.c')
0 files changed, 0 insertions, 0 deletions