mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-16 09:08:37 +01:00
Moar windows fixes
This commit is contained in:
parent
15806019af
commit
d37261529c
1 changed files with 13 additions and 12 deletions
|
@ -28,23 +28,24 @@ pub enum Signal {
|
|||
SIGUSR2,
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
use std::{fmt, io::Write};
|
||||
|
||||
#[cfg(windows)]
|
||||
impl fmt::Display for Signal {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
use std::io::Write;
|
||||
use Self::*;
|
||||
write!(
|
||||
write!("{}",
|
||||
f,
|
||||
match self {
|
||||
SIGKILL => "SIGKILL",
|
||||
SIGTERM => "SIGTERM",
|
||||
SIGINT => "SIGINT",
|
||||
SIGHUP => "SIGHUP",
|
||||
SIGSTOP => "SIGSTOP",
|
||||
SIGCONT => "SIGCONT",
|
||||
SIGCHLD => "SIGCHLD",
|
||||
SIGUSR1 => "SIGUSR1",
|
||||
SIGUSR2 => "SIGUSR2",
|
||||
Self::SIGKILL => "SIGKILL",
|
||||
Self::SIGTERM => "SIGTERM",
|
||||
Self::SIGINT => "SIGINT",
|
||||
Self::SIGHUP => "SIGHUP",
|
||||
Self::SIGSTOP => "SIGSTOP",
|
||||
Self::SIGCONT => "SIGCONT",
|
||||
Self::SIGCHLD => "SIGCHLD",
|
||||
Self::SIGUSR1 => "SIGUSR1",
|
||||
Self::SIGUSR2 => "SIGUSR2",
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue