Skip to content

proposal: os/exec: allow user of CommandContext to specify the kill signal when context is done #21135

Closed
@dqminh

Description

@dqminh

What version of Go are you using (go version)?

go version go1.8.3 linux/amd64

Currently, process started from exec.CommandContext will be killed by SIGKILL when the context is done before the process finished. But in some cases, the process should be allow a chance to clean up then exit cleanly ( by received an expected signal like SIGTERM for example). We received a similar request in containerd/go-runc#21

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions