[issue24045] Behavior of large returncodes (sys.exit(nn))

2021-02-26 Thread Eryk Sun
Eryk Sun added the comment: It's still the case in 3.10 that unsigned status codes are limited to 0x7FFF_, and any larger value gets mapped to -1 (0x_). For example: >>> rc = subprocess.call([sys.executable, '-c', 'raise SystemExit(0x7FFF_)']) >>> hex(rc)

[issue24045] Behavior of large returncodes (sys.exit(nn))

2016-08-29 Thread Eryk Sun
Eryk Sun added the comment: Unix waitpid() packs the process exit status and terminating signal number into a single status value. As specified by POSIX [1], the WEXITSTATUS function returns only the lower 8 bits of the process exit status. In theory, waitid() and wait6() can return the full

[issue24045] Behavior of large returncodes (sys.exit(nn))

2016-08-28 Thread Martin Panter
Martin Panter added the comment: Is this a duplicate of Issue 24052? -- nosy: +martin.panter ___ Python tracker ___

[issue24045] Behavior of large returncodes (sys.exit(nn))

2015-07-21 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: -ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24045 ___ ___ Python-bugs-list

[issue24045] Behavior of large returncodes (sys.exit(nn))

2015-05-02 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24045 ___

[issue24045] Behavior of large returncodes (sys.exit(nn))

2015-04-23 Thread Ethan Furman
New submission from Ethan Furman: Not sure if this is a bug, or just One of Those Things: sys.exit(large_value) can wrap around if the value is too large, but this is O/S dependent. linux (ubuntu 14.04) $ python Python 2.7.8 (default, Oct 20 2014, 15:05:29) [GCC 4.9.1] on linux2