Eric Andersen 23 years ago
parent
commit
aaaab475d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/misc/file/lockf.c

+ 1 - 1
libc/misc/file/lockf.c

@@ -43,7 +43,7 @@ int lockf (int fd, int cmd, off_t len)
 	    fl.l_type = F_RDLCK;
 	    if (fcntl (fd, F_GETLK, &fl) < 0)
 		return -1;
-	    if (fl.l_type == F_UNLCK || fl.l_pid == __getpid ())
+	    if (fl.l_type == F_UNLCK || fl.l_pid == getpid ())
 		return 0;
 	    __set_errno(EACCES);
 	    return -1;