Skip to content

desktop: viewer Chrome stop treats a zombie with live threads as gone #327

Closed

Description

@ElbertePlinio

Found in review of PR #323 (#320).

PR #323 makes stopProcessGroupVerified treat a zombie with live threads as present. The viewer Chrome stop in packages/desktop-linux/src/viewer-state.ts uses a separate path. remainingViewerProcesses builds on listProcessGroupMembers, which skips every zombie, and on identityIsAlive, which treats a zombie as dead. removeLaunchIn then deletes the launch directory and the profile as soon as that list is empty. So it can remove the profile while a zombie Chrome leader still has threads that release file descriptors in it.

  • Make the viewer stop use the present-member rule, either through a new core export or by moving it onto stopProcessGroupVerified
  • Test: the viewer launch directory is kept while a zombie leader still has live threads

Activity

  1. added
    bug
    on Oct 9, 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