Moar windows fixes
This commit is contained in:
parent
15806019af
commit
d37261529c
|
@ -28,23 +28,24 @@ pub enum Signal {
|
||||||
SIGUSR2,
|
SIGUSR2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(windows)]
|
||||||
|
use std::{fmt, io::Write};
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
impl fmt::Display for Signal {
|
impl fmt::Display for Signal {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
use std::io::Write;
|
write!("{}",
|
||||||
use Self::*;
|
|
||||||
write!(
|
|
||||||
f,
|
f,
|
||||||
match self {
|
match self {
|
||||||
SIGKILL => "SIGKILL",
|
Self::SIGKILL => "SIGKILL",
|
||||||
SIGTERM => "SIGTERM",
|
Self::SIGTERM => "SIGTERM",
|
||||||
SIGINT => "SIGINT",
|
Self::SIGINT => "SIGINT",
|
||||||
SIGHUP => "SIGHUP",
|
Self::SIGHUP => "SIGHUP",
|
||||||
SIGSTOP => "SIGSTOP",
|
Self::SIGSTOP => "SIGSTOP",
|
||||||
SIGCONT => "SIGCONT",
|
Self::SIGCONT => "SIGCONT",
|
||||||
SIGCHLD => "SIGCHLD",
|
Self::SIGCHLD => "SIGCHLD",
|
||||||
SIGUSR1 => "SIGUSR1",
|
Self::SIGUSR1 => "SIGUSR1",
|
||||||
SIGUSR2 => "SIGUSR2",
|
Self::SIGUSR2 => "SIGUSR2",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue