better error message

This commit is contained in:
rsc 2005-03-18 19:03:45 +00:00
parent 4ee543e58c
commit 915734a70c
2 changed files with 2 additions and 0 deletions

View file

@ -62,6 +62,7 @@ out:
fl.l_len = 0;
if(fcntl(fd, F_SETLK, &fl) < 0){
close(fd);
werrstr("lock: %r");
return -1;
}
}

View file

@ -49,6 +49,7 @@ p9open(char *name, int mode)
fl.l_len = 0;
if(fcntl(fd, F_SETLK, &fl) < 0){
close(fd);
werrstr("lock: %r");
return -1;
}
}