mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-02 00:00:11 +02:00
signal: rename SignalKind methods (#1457)
This renames the SignalKind constructors to be a bit more readable instead of using the signal names themselves
This commit is contained in:
@@ -102,7 +102,7 @@ pub(crate) fn spawn_child(cmd: &mut process::Command, handle: &Handle) -> io::Re
|
||||
let stdout = stdio(child.stdout.take(), handle)?;
|
||||
let stderr = stdio(child.stderr.take(), handle)?;
|
||||
|
||||
let signal = Signal::with_handle(SignalKind::sigchld(), handle)?;
|
||||
let signal = Signal::with_handle(SignalKind::child(), handle)?;
|
||||
|
||||
Ok(SpawnedChild {
|
||||
child: Child {
|
||||
|
||||
Reference in New Issue
Block a user