pub fn validate_pid(pid: &str) -> Result<u32, ZxError>
Validate a pid given as text: it must consist of ASCII digits only.