aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib9/create.c1
-rw-r--r--src/lib9/open.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lib9/create.c b/src/lib9/create.c
index c608f905..e4e3c715 100644
--- a/src/lib9/create.c
+++ b/src/lib9/create.c
@@ -62,6 +62,7 @@ out:
fl.l_len = 0;
if(fcntl(fd, F_SETLK, &fl) < 0){
close(fd);
+ werrstr("lock: %r");
return -1;
}
}
diff --git a/src/lib9/open.c b/src/lib9/open.c
index c4d36929..a0573ae7 100644
--- a/src/lib9/open.c
+++ b/src/lib9/open.c
@@ -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;
}
}