From: Michael Stapelberg Date: Mon, 7 Nov 2011 23:39:45 +0000 (+0000) Subject: lib/StartXDummy: use close STDOUT, STDERR instead of POSIX::close (Thanks mxf) X-Git-Tag: 4.1~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c8eb7b08ac3b2e3f73bbb52b8b689b439c8ad144;p=i3%2Fi3 lib/StartXDummy: use close STDOUT, STDERR instead of POSIX::close (Thanks mxf) --- 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.