pub fn monitor_notify_by_pid(pid: i32, exit_code: i32) -> Result<()>