make safer
This commit is contained in:
parent
94e6b3c737
commit
66668e5457
1 changed files with 2 additions and 2 deletions
|
@ -91,9 +91,9 @@ fn kill_all() -> io::Result<()> {
|
|||
unsafe {
|
||||
sync();
|
||||
}
|
||||
thread::sleep(Duration::from_millis(50));
|
||||
thread::sleep(Duration::from_millis(100));
|
||||
fs::write("/proc/sysrq-trigger", "u")?;
|
||||
thread::sleep(Duration::from_millis(50));
|
||||
thread::sleep(Duration::from_millis(200));
|
||||
fs::write("/proc/sysrq-trigger", "o")?;
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Reference in a new issue