https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191593
Jilles Tjoelker <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Summary|[fcntl] F_SETLK returns |[fcntl] F_SETLK returns |EDEADLK when it shouldn't - |EDEADLK when it shouldn't - |only F_SETFLW and waiting |only F_SETLKW and waiting |should return EDEADLK |should return EDEADLK --- Comment #3 from Jilles Tjoelker <[email protected]> --- You are right that fcntl(F_SETLK) should not fail with [EDEADLK]; this error is only defined for fcntl(F_SETLKW). A non-blocking locking attempt cannot deadlock. The proposed patch looks wrong, though. The above if ((lock->lf_flags & F_WAIT) == 0 && lock->lf_async_task == NULL) should already catch this case. Perhaps lf_async_task is set incorrectly? -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
