Skip to content

Commit

Permalink
Fix .xerrors.xserver from being empty
Browse files Browse the repository at this point in the history
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 1fe9d09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/webc/startx.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion home/webc/.xserverrc
Original file line number Diff line number Diff line change
@@ -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.