diff options
author | Mika Kuoppala <mika.kuoppala@intel.com> | 2014-03-28 10:52:46 +0200 |
---|---|---|
committer | Mika Kuoppala <mika.kuoppala@intel.com> | 2014-04-10 17:50:49 +0300 |
commit | 2f2c491cf3167befe7c79e4b17afb4f6284dfc84 (patch) | |
tree | 398075a56993dbeeb3173b245b685599d974c815 /lib | |
parent | d983a47f1470cbea8388864537dbe5aff5575df6 (diff) |
lib/drmtest: don't dup quiescent fd
If we dup the fd, we are in mercy of the context banning
of the test application. Better to have our own to guarantee
that gem_quiescent_gpu won't find itself banned on exit.
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/drmtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index 2c9cf62c..bd72e498 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -302,7 +302,7 @@ int drm_open_any(void) return fd; gem_quiescent_gpu(fd); - at_exit_drm_fd = dup(fd); + at_exit_drm_fd = __drm_open_any(); igt_install_exit_handler(quiescent_gpu_at_exit); return fd; @@ -328,7 +328,7 @@ int drm_open_any_render(void) if (__sync_fetch_and_add(&open_count, 1)) return fd; - at_exit_drm_render_fd = dup(fd); + at_exit_drm_render_fd = __drm_open_any(); gem_quiescent_gpu(fd); igt_install_exit_handler(quiescent_gpu_at_exit_render); |