summaryrefslogtreecommitdiff
path: root/lib/igt_primes.c
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2017-09-21 15:52:28 +0300
committerPetri Latvala <petri.latvala@intel.com>2017-09-25 12:17:55 +0300
commitf16a799807487b6e2dcc8c7940a1a8b424f10802 (patch)
treee2d3ec4fd3f010bec2dd35518ec9f7f76412e81b /lib/igt_primes.c
parent51d800ffb7dcb84a2c74bd92aac854435c591c30 (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