pub fn detach<T>(pid: Pid, sig: T) -> Result<(), Errno> where
    T: Into<Option<Signal>>, 
Expand description

Detaches the current running process, as with ptrace(PTRACE_DETACH, ...)

Detaches from the process specified by pid allowing it to run freely, optionally delivering a signal specified by sig.