lib/StartXDummy.pm: document why we use -config /dev/null

This commit is contained in:
Michael Stapelberg 2011-11-07 23:07:08 +00:00
parent afc488021f
commit bf12befd6d
1 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,9 @@ sub start_xdummy {
# Child, close stdout/stderr, then start Xdummy.
POSIX::close(0);
POSIX::close(2);
# 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.
exec './Xdummy', ":$displaynum", '-config', '/dev/null';
exit 1;
}