"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/signal/signal.go" between
moby-20.10.6.tar.gz and moby-20.10.7.tar.gz

About: Moby is a framework to assemble specialized container systems (formerly project name Docker; see here to clarify the relationship between the projects).

signal.go  (moby-20.10.6):signal.go  (moby-20.10.7)
skipping to change at line 15 skipping to change at line 15
import ( import (
"fmt" "fmt"
"os" "os"
"os/signal" "os/signal"
"strconv" "strconv"
"strings" "strings"
"syscall" "syscall"
) )
// CatchAll catches all signals and relays them to the specified channel. // CatchAll catches all signals and relays them to the specified channel.
// SIGURG is not handled, as it's used by the Go runtime to support
// preemptable system calls.
func CatchAll(sigc chan os.Signal) { func CatchAll(sigc chan os.Signal) {
var handledSigs []os.Signal var handledSigs []os.Signal
for _, s := range SignalMap { for n, s := range SignalMap {
if n == "URG" {
// Do not handle SIGURG, as in go1.14+, the go runtime is
sues
// SIGURG as an interrupt to support preemptable system c
alls on Linux.
continue
}
handledSigs = append(handledSigs, s) handledSigs = append(handledSigs, s)
} }
signal.Notify(sigc, handledSigs...) signal.Notify(sigc, handledSigs...)
} }
// StopCatch stops catching the signals and closes the specified channel. // StopCatch stops catching the signals and closes the specified channel.
func StopCatch(sigc chan os.Signal) { func StopCatch(sigc chan os.Signal) {
signal.Stop(sigc) signal.Stop(sigc)
close(sigc) close(sigc)
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)