Skip to content

Fix #417: Mark broken pipe handler thread as daemon#419

Open
HuiNeng6 wants to merge 3 commits into
com-lihaoyi:mainfrom
HuiNeng6:fix/daemon-thread
Open

Fix #417: Mark broken pipe handler thread as daemon#419
HuiNeng6 wants to merge 3 commits into
com-lihaoyi:mainfrom
HuiNeng6:fix/daemon-thread

Conversation

@HuiNeng6

@HuiNeng6 HuiNeng6 commented Apr 1, 2026

Copy link
Copy Markdown

Summary

Fixes issue #417: os.proc.pipeTo causes program to never exit

Problem

The broken pipe handler thread was not marked as a daemon thread, which prevented the program from exiting after the pipeline completed.

Solution

Mark the broken pipe handler thread as a daemon thread so the JVM can exit normally.

Testing

This fix allows the program to exit normally after the pipeline completes, as demonstrated in the issue.

Related

HuiNeng6 added 2 commits April 1, 2026 14:58
The broken pipe handler thread was preventing the program from exiting
because it was not marked as a daemon thread. This fix marks the thread
as daemon so the program can exit normally after the pipeline completes.

Based on the suggested fix in issue com-lihaoyi#417 by JaredNeil.
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.

2 participants