diff options
author | Petri Latvala <petri.latvala@intel.com> | 2017-09-21 15:52:28 +0300 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2017-09-25 12:17:55 +0300 |
commit | f16a799807487b6e2dcc8c7940a1a8b424f10802 (patch) | |
tree | e2d3ec4fd3f010bec2dd35518ec9f7f76412e81b /lib/igt_primes.c | |
parent | 51d800ffb7dcb84a2c74bd92aac854435c591c30 (diff) |
igt_core: Rework igt_system()
Instead of redirecting output to pipes and forking, redirect after
forking to avoid having to carefully unredirect before logging
anything.
igt@tools_test@sysfs_l3_parity had a racy condition where it prints
the output of intel_l3_parity prepended by [cmd], but that ended up
being printed again prepended by [cmd] because output was redirected,
causing outputs to appear multiple times. This patch fixes that.
CC: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Diffstat (limited to 'lib/igt_primes.c')
0 files changed, 0 insertions, 0 deletions