summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kdesktop/lock/lockprocess.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc
index 75465bb34..f0f53ae1e 100644
--- a/kdesktop/lock/lockprocess.cc
+++ b/kdesktop/lock/lockprocess.cc
@@ -239,6 +239,7 @@ void LockProcess::setupPipe()
{
/* Create the FIFO if it does not exist */
umask(0);
+ unlink(FIFO_DIR);
mkdir(FIFO_DIR,0600);
mknod(FIFO_FILE, S_IFIFO|0600, 0);