Merge pull request #5496 from baude/preemptive

eat signal 23 in signal proxy
This commit is contained in:
OpenShift Merge Robot 2020-03-14 01:04:10 +01:00 committed by GitHub
commit 8b07ad1138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,10 @@ func ProxySignals(ctr *libpod.Container) {
for s := range sigBuffer {
// Ignore SIGCHLD and SIGPIPE - these are mostly likely
// intended for the podman command itself.
if s == syscall.SIGCHLD || s == syscall.SIGPIPE {
// SIGURG was added because of golang 1.14 and its preemptive changes
// causing more signals to "show up".
// https://github.com/containers/libpod/issues/5483
if s == syscall.SIGCHLD || s == syscall.SIGPIPE || s == syscall.SIGURG {
continue
}