Permalink
Browse files

Fix .xerrors.xserver from being empty

Hide stderr
Bug was caused by wrong ordering of copy descriptor http://wiki.bash-hackers.org/scripting/copydescriptor
  • Loading branch information...
kaihendry committed Apr 4, 2012
1 parent cffb14c commit 1fe9d097ff5d4ef98958613506394752baf3c305
Showing with 2 additions and 2 deletions.
  1. +1 −1 etc/webc/startx.sh
  2. +1 −1 home/webc/.xserverrc
View
@@ -1,4 +1,4 @@
#!/bin/sh
# start X, managed by inittab
-exec su webc -c startx 2>&1 >/home/webc/.xerrors
+exec su webc -c startx >/home/webc/.xerrors 2>&1
View
@@ -1,3 +1,3 @@
#!/bin/sh
-exec /usr/bin/X -nolisten tcp 2>&1 >/home/webc/.xerrors.xserver
+exec /usr/bin/X -nolisten tcp >/home/webc/.xerrors.xserver 2>&1

0 comments on commit 1fe9d09

Please sign in to comment.