Follow a starter's game on Linux when the starter exits before the first look #145

Closed
opened 2026-10-25 18:32:40 -05:00 by ethan-hann · 1 comment
Owner

SavePoint follows the process a short-lived starter hands over to (D13.10, #56) by its parent id. On Linux a process whose parent exits is reparented to init or a subreaper, so when the starter starts the game and exits within one look (2 seconds), the game no longer names the starter and is not followed; Windows keeps the old parent id and follows it. Found when the Linux CI gate failed the real-process test with a starter that exits at once (the test now keeps its starter up with FakeGame's --linger).

A fix could link a process to a gone starter without the parent id: a process that started within the relaunch window after the starter, whose program lies inside the game's install folder, and is not one of the excluded crash reporters. It needs care so an unrelated in-folder process (a second copy of the game, a server the player started) is not taken for the game, for example only when exactly one such process appears.

SavePoint follows the process a short-lived starter hands over to (D13.10, #56) by its parent id. On Linux a process whose parent exits is reparented to init or a subreaper, so when the starter starts the game and exits within one look (2 seconds), the game no longer names the starter and is not followed; Windows keeps the old parent id and follows it. Found when the Linux CI gate failed the real-process test with a starter that exits at once (the test now keeps its starter up with FakeGame's --linger). A fix could link a process to a gone starter without the parent id: a process that started within the relaunch window after the starter, whose program lies inside the game's install folder, and is not one of the excluded crash reporters. It needs care so an unrelated in-folder process (a second copy of the game, a server the player started) is not taken for the game, for example only when exactly one such process appears.
ethan-hann added this to the Later milestone 2026-10-25 18:32:40 -05:00
Author
Owner

Shipped in 0.9.13 (pull request 149).

Shipped in 0.9.13 (pull request 149).
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ethan-hann/SavePoint#145
No description provided.