Skip to content

Crashes when trying to send signal to a CMD started process #5

@BullyWiiPlaza

Description

@BullyWiiPlaza

I'm starting my main application with the following command:
C:\WINDOWS\system32\cmd.exe /c start /min /"Main-Application\" /high /b MyProcess.exe

When I invoke windows-kill to send a CTRL + C to a process spawned by MyProcess it crashes windows-kill at the following location:

Exception thrown at 0x00007FFE8B8853F5 (KernelBase.dll) in windows-kill.exe: 0x40010005: Control-C.

image

This is especially nasty since it caused a hang of the application because it waits for windows-kill's completion.

Can this be fixed? If not, maybe you can suggest me an alternative way of sending a CTRL + C button press to a process on Windows. I'm using Java 8's ProcessBuilder though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions