Message321871
Can you please add some info on how the errorcode dictionary is generated as shown in the picture along with your OS, system information? They seem to have the right values as per the Linux error codes in my Ubuntu box. I might be wrong on the OS on which this happens since you have mentioned it's the opposite of Linux.
cpython git:(master) ✗ rlwrap ./python
Python 3.8.0a0 (heads/master:35c0809, Jul 16 2018, 10:29:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import errno
>>> errno.EDEADLK
35
>>> errno.EAGAIN
11
➜ cpython git:(master) ✗ rlwrap python2.7
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import errno
>>> errno.EDEADLK
35
>>> errno.EAGAIN
11
Machine details and values in header files as below
➜ cpython git:(master) ✗ rg 'EDEADLK|EAGAIN' /usr/include/asm-generic/errno-base.h /usr/include/asm-generic/errno.h
/usr/include/asm-generic/errno-base.h
14:#define EAGAIN 11 /* Try again */
/usr/include/asm-generic/errno.h
6:#define EDEADLK 35 /* Resource deadlock would occur */
➜ cpython git:(master) ✗ uname -a
Linux ubuntu-s-1vcpu-1gb-blr1-01 4.4.0-127-generic #153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Thanks |
|
Date |
User |
Action |
Args |
2018-07-18 09:39:06 | xtreak | set | recipients:
+ xtreak, ronaldoussoren, ned.deily, lktoken |
2018-07-18 09:39:06 | xtreak | set | messageid: <1531906746.1.0.56676864532.issue34143@psf.upfronthosting.co.za> |
2018-07-18 09:39:06 | xtreak | link | issue34143 messages |
2018-07-18 09:39:05 | xtreak | create | |
|