diff options
author | Randy MacLeod <Randy.MacLeod@windriver.com> | 2019-06-16 11:48:16 -0400 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-06-27 06:56:20 -0700 |
commit | 25121d92f1a4cd70223038e09a719fec94355ee6 (patch) | |
tree | 553b0729e00a09c094193b2e2dedaa3f0fe988e2 /scripts/runqemu-export-rootfs | |
parent | 884e0d80d0113e8af5bdbd7988e391c1292e37c2 (diff) | |
download | openembedded-core-contrib-25121d92f1a4cd70223038e09a719fec94355ee6.tar.gz |
ptest-runner: enable child procs as session leader
When running the run-execscript bash ptest as a user rather than root, a warning:
bash: cannot set terminal process group (16036): Inappropriate ioctl for device
bash: no job control in this shell
contaminates the bash log files causing the test to fail. This happens only
when run under ptest-runner and not when interactively testing!
The changes made to fix this include:
1. Get the process group id (pgid) before forking,
2. Set the pgid in both the parent and child to avoid a race,
3. Find, open and set permission on the child tty, and
4. Allow the child to attach to controlling tty.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'scripts/runqemu-export-rootfs')
0 files changed, 0 insertions, 0 deletions