Skip to content

os: misleading document #22454

@bronze1man

Description

@bronze1man

What did you do?

review code in https://github.com/golang/go/blob/master/src/os/exec_posix.go#L13
https://github.com/golang/go/blob/master/src/os/exec_windows.go#L71

What did you expect to see?

os.Interrupt can not send in windows system. it will return a error message with "not supported by windows"

What did you see instead?

// The only signal values guaranteed to be present on all systems
// are Interrupt (send the process an interrupt) and Kill (force
// the process to exit).

os.Process.Signal says:

// Signal sends a signal to the Process.
// Sending Interrupt on Windows is not implemented.

os.Process.Signal says about this,but it was not on the os.Interrupt which misleading me to think that os.Process.Signal(os.Interrupt) is working on windows.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions