oops - lock test was the wrong way around
authorAndrew Tridgell <tridge@samba.org>
Sat, 5 Dec 1998 08:19:42 +0000 (08:19 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 5 Dec 1998 08:19:42 +0000 (08:19 +0000)
source/lib/pidfile.c

index 3e943577d804b1f80eaf6aa4dede8b7dc7917c12..6fc64aafe2f3b7866da0c27e37f32af0ac766ad8 100644 (file)
@@ -56,7 +56,7 @@ pid_t pidfile_pid(char *name)
                goto ok;
        }
 
-       if (fcntl_lock(fd,SMB_F_SETLK,0,1,F_WRLCK)==False) {
+       if (fcntl_lock(fd,SMB_F_SETLK,0,1,F_WRLCK)) {
                /* we could get the lock - it can't be a Samba process */
                goto ok;
        }