Skip to content

Whisky can't stop Wine processes after a bottle's wineserver has exited #440

Todo

Description

@frankea

If a bottle's wineserver exits while its programs are still running, Whisky loses all control over them. Stop runs wineserver -k, which finds no server and does nothing; the sidebar probes the wineserver, finds none and shows the bottle as idle; and the startup cleanup only looks at bottles whose wineserver is running. The processes stay until logout or a manual kill, and with the engine bug in #439 some of them spin at full CPU. On my Mac this left a Steam client and a batch of Wine services from a week earlier running, two of them at a full core each.

These processes can be found reliably: each one maps shared memory from the bottle's server folder in /tmp/.wine-<uid>, and a running wineserver always holds that folder's lock file. A process that maps from the folder while nobody holds the lock belongs to a server that is gone and can never do anything again, so stopping it loses nothing.

The fix stops these processes when a bottle is stopped, when a session ends, and at launch.

Activity

  1. added
    fixed-pending-release
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

fixed-pending-release

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions