INNER CODE UNIT · Go
rerunTimeout
NVIDIA/k8s-device-plugin · cmd/gpu-feature-discovery/main.go:295
rerunTimeout = time.After(time.Duration(*d.config.Flags.GFD.SleepInterval))
}
for {
select {
case <-rerunTimeout:
goto rerun
// Watch for any signals from the OS. On SIGHUP trigger a reload of the config.
// On all other signals, exit the loop and exit the program.
case s := <-sigs:
switch s {
case syscall.SIGHUP:
klog.Info("Received SIGHUP, restarting.")
return true, nil
default:
klog.Infof("Received signal %v, shutting down.", s)
return false, nil