Skip to content

Comments

Guard against nil pid in Puma plugin stop#715

Merged
rosa merged 1 commit intomainfrom
fix-puma-plugin-nil-pid
Feb 18, 2026
Merged

Guard against nil pid in Puma plugin stop#715
rosa merged 1 commit intomainfrom
fix-puma-plugin-nil-pid

Conversation

@rosa
Copy link
Member

@rosa rosa commented Feb 18, 2026

When fork fails silently in restricted container environments, solid_queue_pid remains nil. On shutdown, Puma fires the stopped event, and stop_solid_queue_fork is called, where Process.waitpid(nil) raises TypeError.

Add an early return when solid_queue_pid is nil, and remove the now-redundant conditional on Process.kill.

Related to #628 and #617

When fork fails silently in restricted container environments,
`solid_queue_pid` remains `nil`. On shutdown, Puma fires the
stopped event and `stop_solid_queue_fork` is called, where
`Process.waitpid(nil)` raises `TypeError`.

Add an early return when `solid_queue_pid` is nil, and remove the
now-redundant conditional on `Process.kill`.

Related to #628 and #617

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rosa rosa force-pushed the fix-puma-plugin-nil-pid branch from 43e9a68 to ea00232 Compare February 18, 2026 21:02
@rosa rosa merged commit 67a91df into main Feb 18, 2026
126 of 128 checks passed
@rosa rosa deleted the fix-puma-plugin-nil-pid branch February 18, 2026 21:03
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