Skip to content

SIGINT can't terminate subprocess on OS X #3460

@cissusnar

Description

@cissusnar
$ ps -ef   
501 38117 24809   0  7:00下午 ttys001    0:00.01 cargo run
501 38118 38117   0  7:00下午 ttys001    0:00.08 target/debug/myproj

$ kill -SIGINT 38117

$ ps -ef 
501 38118     1   0  7:00下午 ttys001    0:00.08 target/debug/myproj

'cargo run' process is terminated, but it's subprocess is still running.

$ cargo --version
cargo 0.15.0-nightly (298a012 2016-12-20)

$ rustc --version
rustc 1.14.0 (e8a012324 2016-12-16)

$ uname -a
Darwin localhost.local 16.3.0 Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64

CTRL+C can terminate cargo process and it's subprocess.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions