Commit 4f23f80
committed
windows: change Signal to alias syscall.Signal
This CL changes Signal type from int to alias syscall.Signal
to make Signal useful. In particular, you can pass windows.SIGINT
to signal.Notify to produce behaviour similar to os.Interrupt and
syscall.SIGINT.
For golang/go#77076.
Change-Id: Ie9243c30063e777f9898eba6d649c248a7f48fc5
Reviewed-on: https://go-review.googlesource.com/c/sys/+/735920
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Austin Clements <austin@google.com>1 parent 7548802 commit 4f23f80
2 files changed
+1
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1490 | 1490 | | |
1491 | 1491 | | |
1492 | 1492 | | |
1493 | | - | |
1494 | | - | |
1495 | | - | |
1496 | | - | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
1501 | | - | |
1502 | | - | |
1503 | | - | |
1504 | | - | |
1505 | | - | |
1506 | | - | |
1507 | 1493 | | |
1508 | 1494 | | |
1509 | 1495 | | |
| |||
0 commit comments