Skip to content

Commit

Permalink
dapr#222 dapr stop does not work on windows (dapr#246)
Browse files Browse the repository at this point in the history
Co-authored-by: Young Bu Park <[email protected]>
  • Loading branch information
LMWF and youngbupark authored Feb 6, 2020
1 parent c000144 commit d71bb51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/standalone/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ func Stop(appID string) error {
pid := fmt.Sprintf("%v", a.PID)

var err error
if runtime.GOOS == "windows" {
err = utils.RunCmdAndWait("taskkill", "/F", "/PID", pid)
if runtime.GOOS == "windows" {
err = utils.RunCmdAndWait("taskkill", "/F", "/T", "/PID", pid)
} else {
err = utils.RunCmdAndWait("kill", pid)
}
Expand Down

0 comments on commit d71bb51

Please sign in to comment.