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 {
|
unsafe {
|
||||||
sync();
|
sync();
|
||||||
}
|
}
|
||||||
thread::sleep(Duration::from_millis(50));
|
thread::sleep(Duration::from_millis(100));
|
||||||
fs::write("/proc/sysrq-trigger", "u")?;
|
fs::write("/proc/sysrq-trigger", "u")?;
|
||||||
thread::sleep(Duration::from_millis(50));
|
thread::sleep(Duration::from_millis(200));
|
||||||
fs::write("/proc/sysrq-trigger", "o")?;
|
fs::write("/proc/sysrq-trigger", "o")?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Reference in a new issue