diff options
author | rsc <devnull@localhost> | 2005-03-18 19:03:45 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-03-18 19:03:45 +0000 |
commit | 915734a70cf929702f84671c8ea63d483acd34db (patch) | |
tree | 083c4dc0b2c5c1194fed46a48e76d99b2a91f901 /src/lib9 | |
parent | 4ee543e58c5e6cf5ef0b94dfec752dadbbd063d3 (diff) | |
download | plan9port-915734a70cf929702f84671c8ea63d483acd34db.tar.gz plan9port-915734a70cf929702f84671c8ea63d483acd34db.tar.bz2 plan9port-915734a70cf929702f84671c8ea63d483acd34db.zip |
better error message
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/create.c | 1 | ||||
-rw-r--r-- | src/lib9/open.c | 1 |
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; } } |