Skip to content

Commit

Permalink
add force flag to windows shutdown
Browse files Browse the repository at this point in the history
Hopefully this addresses issue #7. More testing necessary before
closing.
  • Loading branch information
flowchartsman committed May 7, 2015
1 parent 52a1fe2 commit fd1d745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func shutdownNow() error {
if err := checkExe("shutdown"); err != nil {
return err
}
err := exec.Command("shutdown", "/p").Run()
err := exec.Command("shutdown", "/f", "/p").Run()

//Not that this matters
return err
Expand Down

0 comments on commit fd1d745

Please sign in to comment.