Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff -r 065aeab132e1 src/pkg/runtime/defs_windows.go
--- a/src/pkg/runtime/defs_windows.go Mon Apr 07 12:59:55 2014 -0700
+++ b/src/pkg/runtime/defs_windows.go Tue Apr 08 23:35:24 2014 +0200
@@ -44,6 +44,7 @@
SIGINT = C.SIGINT
CTRL_C_EVENT = C.CTRL_C_EVENT
CTRL_BREAK_EVENT = C.CTRL_BREAK_EVENT
+ CTRL_CLOSE_EVENT = C.CTRL_CLOSE_EVENT
CONTEXT_CONTROL = C.CONTEXT_CONTROL
CONTEXT_FULL = C.CONTEXT_FULL
diff -r 065aeab132e1 src/pkg/runtime/defs_windows_386.h
--- a/src/pkg/runtime/defs_windows_386.h Mon Apr 07 12:59:55 2014 -0700
+++ b/src/pkg/runtime/defs_windows_386.h Tue Apr 08 23:35:24 2014 +0200
@@ -17,6 +17,7 @@
SIGINT = 0x2,
CTRL_C_EVENT = 0x0,
CTRL_BREAK_EVENT = 0x1,
+ CTRL_CLOSE_EVENT = 0x2,
CONTEXT_CONTROL = 0x10001,
CONTEXT_FULL = 0x10007,
diff -r 065aeab132e1 src/pkg/runtime/defs_windows_amd64.h
--- a/src/pkg/runtime/defs_windows_amd64.h Mon Apr 07 12:59:55 2014 -0700
+++ b/src/pkg/runtime/defs_windows_amd64.h Tue Apr 08 23:35:24 2014 +0200
@@ -17,6 +17,7 @@
SIGINT = 0x2,
CTRL_C_EVENT = 0x0,
CTRL_BREAK_EVENT = 0x1,
+ CTRL_CLOSE_EVENT = 0x2,
CONTEXT_CONTROL = 0x100001,
CONTEXT_FULL = 0x10000b,
diff -r 065aeab132e1 src/pkg/runtime/os_windows.c
--- a/src/pkg/runtime/os_windows.c Mon Apr 07 12:59:55 2014 -0700
+++ b/src/pkg/runtime/os_windows.c Tue Apr 08 23:35:24 2014 +0200
@@ -389,6 +389,7 @@
switch(type) {
case CTRL_C_EVENT:
case CTRL_BREAK_EVENT:
+ case CTRL_CLOSE_EVENT:
s = SIGINT;
break;
default:
diff -r 065aeab132e1 src/pkg/syscall/ztypes_windows.go
--- a/src/pkg/syscall/ztypes_windows.go Mon Apr 07 12:59:55 2014 -0700
+++ b/src/pkg/syscall/ztypes_windows.go Tue Apr 08 23:35:24 2014 +0200
@@ -173,6 +173,7 @@
CTRL_C_EVENT = 0
CTRL_BREAK_EVENT = 1
+ CTRL_CLOSE_EVENT = 2
)
const (
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.