Skip to content

Fix logger goroutine leak on restart#159

Merged
mattn merged 1 commit into
masterfrom
fix-logger-goroutine-leak
Jul 8, 2026
Merged

Fix logger goroutine leak on restart#159
mattn merged 1 commit into
masterfrom
fix-logger-goroutine-leak

Conversation

@mattn

@mattn mattn commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Each restart created a new clogger whose goroutine never exits. Reuse the logger stored in procInfo. Adds a leak regression test.

@mattn
mattn force-pushed the fix-logger-goroutine-leak branch from c78ef3f to 20e1b3c Compare July 8, 2026 01:10
@mattn
mattn force-pushed the fix-logger-goroutine-leak branch from 20e1b3c to 6162d46 Compare July 8, 2026 01:13
@mattn
mattn merged commit 725216e into master Jul 8, 2026
2 checks passed
@mattn
mattn deleted the fix-logger-goroutine-leak branch July 8, 2026 01:15
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