summaryrefslogtreecommitdiff
path: root/startx.cpp
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@bluenote.herrb.com>2007-09-15 18:12:52 +0200
committerMatthieu Herrb <matthieu@bluenote.herrb.com>2007-09-15 18:14:11 +0200
commitb9d07ef3e07ef6f00a2f1cc730a481e5e1291f5b (patch)
tree7e9ec5657ebe214e291d7711a19f662fc1481490 /startx.cpp
parente91874313c99dfb6be042cd1739e463e080b71fc (diff)
remove .serverauth.$$ file on signals or errors
Diffstat (limited to 'startx.cpp')
-rw-r--r--startx.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/startx.cpp b/startx.cpp
index 42421ef..a9b4199 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -198,6 +198,7 @@ dummy=0
XCOMM create a file with auth information for the server. ':0' is a dummy.
xserverauthfile=$HOME/.serverauth.$$
+trap "rm -f $xserverauthfile" ERR HUP INT QUIT ILL TRAP KILL BUS TERM
xauth -q -f $xserverauthfile << EOF
add :$dummy . $mcookie
EOF