[Bug 245773] lang/python3: Missing errno.EDEADLOCK

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 16 Sep 2021 12:43:38 +0000

Willem Jan Withagen <wjw_at_digiware.nl> changed:

           What    |Removed                     |Added
                 CC|                            |wjw_at_digiware.nl

--- Comment #2 from Willem Jan Withagen <wjw_at_digiware.nl> ---
(In reply to Gleb Popov from comment #1)

Yes you are corect. And even on Linux `man 3 errno` tells:
              On most architectures, a synonym for EDEADLK.  On some
              architectures (e.g., Linux MIPS, PowerPC, SPARC), it is a
              separate error code "File locking deadlock error".
and in the errno file itself:
asm-generic/errno.h:#define     EDEADLK         35      /* Resource deadlock
would occur */
asm-generic/errno.h:#define     EDEADLOCK       EDEADLK

But it would be a lot more conveinient if it did exist and worked as expected.

The problem of the requestor is not fixed with this, since on FreeBSD `EDEADLK`
has value 11, so things will not work as expected.
And sending error codes between FreeBSD and Linux will require translation for
more than just this one.

Then again Python claims that it errno.EDEADLOCK is there, so we should atleast
fix that omission.

You are receiving this mail because:
You are the assignee for the bug.
Received on Thu Sep 16 2021 - 12:43:38 UTC

Original text of this message