Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

selectmodule.c: errno < 0 comparison is always false #146205

Closed
Labels
type-bugAn unexpected behavior, bug, or error
@aisk

Description

@aisk

Bug report

Bug description:

Summary

Multiple sites inModules/selectmodule.c checkif (errno < 0) after close/epoll_ctl calls. Sinceerrno is anint set to positive values (POSIX), this check is always false. Close errors are silently swallowed.

Fix

Changeif (errno < 0) toif (retval < 0) (check the return value, not errno directly).

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp