From c8eb7b08ac3b2e3f73bbb52b8b689b439c8ad144 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 7 Nov 2011 23:39:45 +0000 Subject: [PATCH] lib/StartXDummy: use close STDOUT, STDERR instead of POSIX::close (Thanks mxf) --- testcases/lib/StartXDummy.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/testcases/lib/StartXDummy.pm b/testcases/lib/StartXDummy.pm index 36b9e006..9dfdedd2 100644 --- a/testcases/lib/StartXDummy.pm +++ b/testcases/lib/StartXDummy.pm @@ -3,7 +3,6 @@ package StartXDummy; use strict; use warnings; -use POSIX (); use Exporter 'import'; use Time::HiRes qw(sleep); use v5.10; @@ -52,8 +51,8 @@ sub start_xdummy { die "Could not fork: $!" unless defined($pid); if ($pid == 0) { # Child, close stdout/stderr, then start Xdummy. - POSIX::close(0); - POSIX::close(2); + close STDOUT; + close STDERR; # We use -config /dev/null to prevent Xdummy from using the system # Xorg configuration. The tests should be independant from the # actual system X configuration. -- 2.39.5