Skip to content

test: sentinel pids below pid_max can be live processes #261

Closed

Description

@ElbertePlinio

Found while fixing #251 (PR #255) and investigating #253.

pid_max on Linux can be 4194304, so any pid below it can belong to a live process after the counter wraps. The counter wrapped on the dev host during this work. These fixtures use pids that can be live: packages/browser/test/session.test.ts "browser record inspection (no live processes)" (4_194_300 to 4_194_303), packages/desktop-linux/test/startup.test.ts PARTIAL_PID = 4_194_301, and packages/browser/test/startup.test.ts PARTIAL_PID = 4_194_302. Product kills are identity-checked, so this can cause assertion flakes but no wrong kill. PR #255 moved the pre-identity fixture to 4194305, above the kernel limit of 4194304.

  • Move these fixtures to pids above 4194304, where the product path under test accepts them

Activity

  1. added
    bug
    on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions