fn signal_process(process: &RwLock<Option<Process>>, signal: Option<Signal>, wait: bool) {
    let guard = process.read().unwrap();

    if let Some(ref child) = *guard {
        if let Some(s) = signal {
            child.signal(s);
        }

        if wait {
            debug!("Waiting for process to exit...");
            child.wait();
        }
    }
}
// signal_process sends signal to process. It waits for the process to exit if wait is true
signal_process sends signal to process. It waits for the process to exit if wait is true
signal_process sends signal to process . It waits for the process to exit if wait is true
fn signal_process(process: &RwLock<Option<Process>>, signal: Option<Signal>, wait: bool) {
    let guard = process.read().unwrap();
    if let Some(ref child) = *guard {
        if let Some(s) = signal {
            child.signal(s);
        }
        if wait {
            debug!("Waiting for process to exit...");
            child.wait();
        }
    }
}
fn signal_process ( process : & RwLock < Option < Process > > , signal : Option < Signal > , wait : bool ) { let guard = process . read ( ) . unwrap ( ) ; if let Some ( ref child ) = * guard { if let Some ( s ) = signal { child . signal ( s ) ; } if wait { debug ! ( " " ) ; child . wait ( ) ; } } }
signal_process sends signal to process.
signal_process sends signal to process .
process
&RwLock<Option<Process>>
signal
Option<Signal>
wait
bool