From fd1d745118ce31da17bbcbcc9e56d1f89584656f Mon Sep 17 00:00:00 2001 From: Andy Walker Date: Wed, 6 May 2015 21:29:06 -0400 Subject: [PATCH] add force flag to windows shutdown Hopefully this addresses issue #7. More testing necessary before closing. --- sys_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys_windows.go b/sys_windows.go index b033665..5cb0d3c 100644 --- a/sys_windows.go +++ b/sys_windows.go @@ -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