summaryrefslogtreecommitdiff
path: root/startx.cpp
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2009-08-18 21:48:29 +0200
committerMatthieu Herrb <matthieu.herrb@laas.fr>2009-08-18 21:48:29 +0200
commit312a3179638c36ef2b7aea4be70f24bd72851ce0 (patch)
tree977b6df1e27f81c127c5bbb69c8fece320479bfd /startx.cpp
parentfe046aa3b2d2789ebe6a795e6271de5cd3dfbb51 (diff)
parent33c3dae16b632ab56b6b361273a48079eb0a41c4 (diff)
Merge commit 'origin/master' into obsd
Diffstat (limited to 'startx.cpp')
-rw-r--r--startx.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/startx.cpp b/startx.cpp
index f911499..a1adbf5 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -279,7 +279,7 @@ if [ x"$enable_xauth" = x1 ] ; then
xauth -q -f "$xserverauthfile" << EOF
add :$dummy . $mcookie
EOF
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__CYGWIN__)
serverargs=${serverargs}" -auth '"${xserverauthfile}"'"
#else
serverargs=${serverargs}" -auth "${xserverauthfile}
@@ -313,13 +313,14 @@ else
fi
#else
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__CYGWIN__)
eval XINIT \"$client\" $clientargs -- \"$server\" $display $serverargs
#else
XINIT "$client" $clientargs -- "$server" $display $serverargs
#endif
#endif
+retval=$?
if [ x"$enable_xauth" = x1 ] ; then
if [ x"$removelist" != x ]; then
@@ -347,3 +348,6 @@ screenrestore
#if defined(sun)
kbd_mode -a
#endif
+
+exit $retval
+