Browse Source

remove dead case for F_SETLKW in fcntl

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.
Rich Felker 10 năm trước cách đây
mục cha
commit
ea1b6bb612
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      src/fcntl/fcntl.c

+ 0 - 1
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: