-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
>>> os.dup2(-1, 0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 0] Error
The bug is caused by the old manual sign check that at some point lost the part that set errno
:
Lines 9832 to 9834 in c3a1783
if (fd < 0 || fd2 < 0) { | |
posix_error(); | |
return -1; |
I'm going to submit a PR with the fix.
Linked PRs
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error