Skip to content

fix: panics on redirect to /dev/full#261

Open
toggysmith wants to merge 2 commits into
uutils:mainfrom
toggysmith:handle-redirect-to-dev-full
Open

fix: panics on redirect to /dev/full#261
toggysmith wants to merge 2 commits into
uutils:mainfrom
toggysmith:handle-redirect-to-dev-full

Conversation

@toggysmith

Copy link
Copy Markdown
Contributor

This fixes several panics that would occur when the stdout was redirected to /dev/full. This also introduces a new macro for this purpose, named safe_println!(), that does not panic in this situation, which can presumably be reused elsewhere this issue may reoccur in the future.

This fixes several panics that would occur when the stdout was
redirected to /dev/full. This also introduces a new macro for
this purpose, named `safe_println!()`, that does not panic in
this situation, which can presumably be reused elsewhere this
issue may reoccur in the future.
@toggysmith

Copy link
Copy Markdown
Contributor Author

This resolves #165 .

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