mirror of
https://github.com/containers/podman.git
synced 2025-06-19 08:09:12 +08:00
Add support to sig-proxy for podman-remote
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
This commit is contained in:
@ -87,3 +87,11 @@ var SignalMap = map[string]syscall.Signal{
|
||||
"RTMAX-1": sigrtmax - 1,
|
||||
"RTMAX": sigrtmax,
|
||||
}
|
||||
|
||||
// IsSignalIgnoredBySigProxy determines whether sig-proxy should ignore syscall signal
|
||||
func IsSignalIgnoredBySigProxy(s syscall.Signal) bool {
|
||||
// Ignore SIGCHLD and SIGPIPE - these are most likely intended for the podman command itself.
|
||||
// SIGURG was added because of golang 1.14 and its preemptive changes causing more signals to "show up".
|
||||
// https://github.com/containers/podman/issues/5483
|
||||
return s == syscall.SIGCHLD || s == syscall.SIGPIPE || s == syscall.SIGURG
|
||||
}
|
||||
|
Reference in New Issue
Block a user