mirror of
https://github.com/uutils/coreutils.git
synced 2025-07-08 05:54:59 +00:00
Merge pull request #377 from Arcterus/fix-pipe_writeln
common/util: make pipe_writeln! use writeln! instead of write!
This commit is contained in:
commit
b65719638d
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ macro_rules! pipe_write(
|
|||
#[macro_export]
|
||||
macro_rules! pipe_writeln(
|
||||
($fd:expr, $($args:expr),+) => (
|
||||
match write!($fd, $($args),+) {
|
||||
match writeln!($fd, $($args),+) {
|
||||
Ok(_) => true,
|
||||
Err(f) => {
|
||||
if f.kind == ::std::io::BrokenPipe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue