Skip to content

kill does not allow 0 as a signal #504

Closed
@gcp

Description

@gcp
   "If sig is 0, then no signal is sent, but error checking is still performed; this can be used to  check
   for the existence of a process ID or process group ID."

signal.rs seems to explicitly disallow the signal value to be 0, i.e.:

    pub fn from_c_int(signum: libc::c_int) -> Result<Signal> {
        match 0 < signum && signum < NSIG {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions