News for hackers. Stuff that matters.
Re:Rust and Nix = easier Unix systems programming by masklinn on Thursday April 14, 2016 @07:00AM (#11495599)
> The function of kill is to kill a given pid

1. there are more failure modes than these (POSIX kill(2) can set 3 different errnos)

2. kill(2) signals process, it doesn't usually kill them (let alone kill them outright in such a way that this information could ever be returned)

3. kill(2) can signal process sets of cardinality > 1

4. the `unwrap` panic message will print the unwrapped value, which includes the ERRNO

There are no comments on this comment yet.