diff options
-rw-r--r-- | xserver/os/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/os/utils.c b/xserver/os/utils.c index f45f9b4a4..c22828521 100644 --- a/xserver/os/utils.c +++ b/xserver/os/utils.c @@ -337,7 +337,7 @@ LockServer(void) /* * Read the pid from the existing file */ - lfd = open(LockFile, O_RDONLY); + lfd = open(LockFile, O_RDONLY|O_NOFOLLOW); if (lfd < 0) { unlink(tmp); FatalError("Can't read lock file %s\n", LockFile); |