Skip to content
Commit a9d35765 authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

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: default avatarCarlos O'Donell <carlos@redhat.com>
Reviewed-by: default avatarCarlos O'Donell <carlos@redhat.com>
parent e8faf483
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment