From 2ac898c2320e88580ecc0ce9113c2e4cba0b0cf0 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 15 Feb 2022 15:58:05 +0100 Subject: [PATCH] vendor: github.com/moby/sys/signal v0.7.0 full diff: https://github.com/moby/sys/compare/signal/v0.6.0...signal/v0.7.0 - add LCOW supported signals to windows signal map Signed-off-by: Sebastiaan van Stijn --- vendor.mod | 2 +- vendor.sum | 4 ++-- .../moby/sys/signal/signal_windows.go | 23 +++++++++++++++++++ vendor/modules.txt | 2 +- 4 files changed, 27 insertions(+), 4 deletions(-) diff --git a/vendor.mod b/vendor.mod index 2187f41313..4a9ac19e36 100644 --- a/vendor.mod +++ b/vendor.mod @@ -56,7 +56,7 @@ require ( github.com/moby/locker v1.0.1 github.com/moby/sys/mount v0.3.0 github.com/moby/sys/mountinfo v0.6.0 - github.com/moby/sys/signal v0.6.0 + github.com/moby/sys/signal v0.7.0 github.com/moby/sys/symlink v0.2.0 github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 github.com/morikuni/aec v1.0.0 diff --git a/vendor.sum b/vendor.sum index ce35e6b211..a971e87028 100644 --- a/vendor.sum +++ b/vendor.sum @@ -512,8 +512,8 @@ github.com/moby/sys/mountinfo v0.4.1/go.mod h1:rEr8tzG/lsIZHBtN/JjGG+LMYx9eXgW2J github.com/moby/sys/mountinfo v0.5.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU= github.com/moby/sys/mountinfo v0.6.0 h1:gUDhXQx58YNrpHlK4nSL+7y2pxFZkUcXqzFDKWdC0Oo= github.com/moby/sys/mountinfo v0.6.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU= -github.com/moby/sys/signal v0.6.0 h1:aDpY94H8VlhTGa9sNYUFCFsMZIUh5wm0B6XkIoJj/iY= -github.com/moby/sys/signal v0.6.0/go.mod h1:GQ6ObYZfqacOwTtlXvcmh9A26dVRul/hbOZn88Kg8Tg= +github.com/moby/sys/signal v0.7.0 h1:25RW3d5TnQEoKvRbEKUGay6DCQ46IxAVTT9CUMgmsSI= +github.com/moby/sys/signal v0.7.0/go.mod h1:GQ6ObYZfqacOwTtlXvcmh9A26dVRul/hbOZn88Kg8Tg= github.com/moby/sys/symlink v0.1.0/go.mod h1:GGDODQmbFOjFsXvfLVn3+ZRxkch54RkSiGqsZeMYowQ= github.com/moby/sys/symlink v0.2.0 h1:tk1rOM+Ljp0nFmfOIBtlV3rTDlWOwFRhjEeAhZB0nZc= github.com/moby/sys/symlink v0.2.0/go.mod h1:7uZVF2dqJjG/NsClqul95CqKOBRQyYSNnJ6BMgR/gFs= diff --git a/vendor/github.com/moby/sys/signal/signal_windows.go b/vendor/github.com/moby/sys/signal/signal_windows.go index cb459d17c2..5f7d5871eb 100644 --- a/vendor/github.com/moby/sys/signal/signal_windows.go +++ b/vendor/github.com/moby/sys/signal/signal_windows.go @@ -31,4 +31,27 @@ var SignalMap = map[string]syscall.Signal{ "SEGV": syscall.Signal(windows.SIGSEGV), "TERM": syscall.Signal(windows.SIGTERM), "TRAP": syscall.Signal(windows.SIGTRAP), + + // additional linux signals supported for LCOW + "CHLD": syscall.Signal(0x11), + "CLD": syscall.Signal(0x11), + "CONT": syscall.Signal(0x12), + "IO": syscall.Signal(0x1d), + "IOT": syscall.Signal(0x6), + "POLL": syscall.Signal(0x1d), + "PROF": syscall.Signal(0x1b), + "PWR": syscall.Signal(0x1e), + "STKFLT": syscall.Signal(0x10), + "STOP": syscall.Signal(0x13), + "SYS": syscall.Signal(0x1f), + "TSTP": syscall.Signal(0x14), + "TTIN": syscall.Signal(0x15), + "TTOU": syscall.Signal(0x16), + "URG": syscall.Signal(0x17), + "USR1": syscall.Signal(0xa), + "USR2": syscall.Signal(0xc), + "VTALRM": syscall.Signal(0x1a), + "WINCH": syscall.Signal(0x1c), + "XCPU": syscall.Signal(0x18), + "XFSZ": syscall.Signal(0x19), } diff --git a/vendor/modules.txt b/vendor/modules.txt index d4221f4817..c4162af617 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -643,7 +643,7 @@ github.com/moby/sys/mount # github.com/moby/sys/mountinfo v0.6.0 ## explicit; go 1.16 github.com/moby/sys/mountinfo -# github.com/moby/sys/signal v0.6.0 +# github.com/moby/sys/signal v0.7.0 ## explicit; go 1.16 github.com/moby/sys/signal # github.com/moby/sys/symlink v0.2.0