Skip to content

os: Interrupt is not sendable on Windows #6720

@dsymonds

Description

@dsymonds
Sending os.Interrupt via os.Process.Signal works on most platforms, but doesn't work on
Windows. There is a TODO(rsc) to do it. Someone should do it for Go 1.3:

https://code.google.com/p/go/source/browse/src/pkg/os/exec_windows.go?name=go1.2rc3#62

func (p *Process) signal(sig Signal) error {
        if p.done() {
                return errors.New("os: process already finished")
        }
        if sig == Kill {
                return terminateProcess(p.Pid, 1)
        }
        // TODO(rsc): Handle Interrupt too?
        return syscall.Errno(syscall.EWINDOWS)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions