Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Workspace: Fix startup hang. Preserve GNUstep child exit statuses - #553

Open
sgharms wants to merge 3 commits into
trunkmaster:masterfrom
sgharms:review/workspace-child-exits
Open

sgharms wants to merge 3 commits into
trunkmaster:masterfrom
sgharms:review/workspace-child-exits

Conversation

@sgharms

@sgharms sgharms commented Dec 6, 2026

Copy link
Copy Markdown

Workspace was collecting exit statuses that GNUstep’s NSTask needed, leaving waitUntilExit stuck. The three commits correct the exit bookkeeping, collect only Workspace-owned children, and deliver their exit statuses on the window manager’s run loop.

Remove saved window state on exit, preserve signal status, and only
treat ESRCH as proof a tracked process is gone.

Sergii Stoian upstream: 298e9a8 moved child-exit handling to the
application level, f498739 revised Dock process tracking, and 84b7286
refined the exit-handler registry and its Dock integration.

Split-from: 4d1b1ca
Upstream-Base: e5d55ef
Reference-Integration: review/integration-reference
(cherry picked from commit 1d65362)
Add and test lock-free PID and wait-status slots with a nonblocking
wakeup pipe. The collector is built here before it replaces the active
handler and feeds the upstream registry.

Sergii Stoian upstream: 298e9a8 moved child-exit handling to the
application level, f498739 revised Dock process tracking, and 84b7286
refined the exit-handler registry and its Dock integration.

Split-from: 4d1b1ca
Upstream-Base: e5d55ef
Reference-Integration: review/integration-reference
(cherry picked from commit 06a24de)
Register Workspace fork sites and drain raw wait statuses on the WM
run loop. Chain Foundation’s SIGCHLD handler so NSTask still observes its
own children. Activate collection and delivery together.

Sergii Stoian upstream: 298e9a8 moved child-exit handling to the
application level, f498739 revised Dock process tracking, and 84b7286
refined the exit-handler registry and its Dock integration.

Split-from: 4d1b1ca
Upstream-Base: e5d55ef
Reference-Integration: review/integration-reference
(cherry picked from commit 546bbaa)
@sgharms

sgharms commented Dec 6, 2026 •

Copy link
Copy Markdown
Author

@trunkmaster This is extremely low-level, but without this I couldn't get the app up and running on FreeBSD. This is a nasty PR.

Update: If you squash merge these numerically nonsensical title vanish. If you prefer to keep them, LMK and I'll retitle to whatever convention you prefer.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant