projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
086793a
)
remove dead case for F_SETLKW in fcntl
author
Rich Felker
<dalias@aerifal.cx>
Tue, 21 Apr 2015 17:34:58 +0000
(13:34 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 21 Apr 2015 17:34:58 +0000
(13:34 -0400)
the first switch already returns in the F_SETLKW code path so it need
not be handled in the second switch. moreover the code in the second
switch is wrong for the F_SETLKW command: it's not cancellable.
src/fcntl/fcntl.c
patch
|
blob
|
history
diff --git
a/src/fcntl/fcntl.c
b/src/fcntl/fcntl.c
index 2c4f5351b38b6647c5604d37786c76d3e08abd0a..ce615d0e5dcce990992bd99d65b52f1ec0a3d53c 100644
(file)
--- a/
src/fcntl/fcntl.c
+++ b/
src/fcntl/fcntl.c
@@
-39,7
+39,6
@@
int fcntl(int fd, int cmd, ...)
}
switch (cmd) {
case F_SETLK:
- case F_SETLKW:
case F_GETLK:
case F_GETOWN_EX:
case F_SETOWN_EX: