Skip to content

Commit e6e2b28

Browse files
authored
Merge pull request #10524 from oech3/nice-panic
nice > /dev/full panics
2 parents 7d63363 + 7443e29 commit e6e2b28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/uu/nice/src/nice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use clap::{Arg, ArgAction, Command};
99
use libc::PRIO_PROCESS;
1010
use std::ffi::OsString;
11-
use std::io::{Error, ErrorKind, Write};
11+
use std::io::{Error, ErrorKind, Write, stdout};
1212
use std::num::IntErrorKind;
1313
use std::os::unix::process::CommandExt;
1414
use std::process;
@@ -143,7 +143,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
143143
}
144144
None => {
145145
if !matches.contains_id(options::COMMAND) {
146-
println!("{niceness}");
146+
writeln!(stdout(), "{niceness}")?;
147147
return Ok(());
148148
}
149149
10_i32

0 commit comments

Comments
 (0)