Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 226 for signalfd (0.41 sec)

  1. src/os/signal/signal.go

    // signals no longer need to be diverted to the context.
    func NotifyContext(parent context.Context, signals ...os.Signal) (ctx context.Context, stop context.CancelFunc) {
    	ctx, cancel := context.WithCancel(parent)
    	c := &signalCtx{
    		Context: ctx,
    		cancel:  cancel,
    		signals: signals,
    	}
    	c.ch = make(chan os.Signal, 1)
    	Notify(c.ch, c.signals...)
    	if ctx.Err() == nil {
    		go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. pkg/ctrlz/topics/signals.go

    // SignalsTopic returns a ControlZ topic that sends command signals to the process
    func SignalsTopic() fw.Topic {
    	return signalsTopic{}
    }
    
    func (signalsTopic) Title() string {
    	return "Signals"
    }
    
    func (signalsTopic) Prefix() string {
    	return "signal"
    }
    
    func (signalsTopic) Activate(context fw.TopicContext) {
    	tmpl := assets.ParseTemplate(context.Layout(), "templates/signals.html")
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 17:12:24 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. cmd/signals.go

    			exit(stopProcess())
    		case osSignal := <-globalOSSignalCh:
    			logger.Info("Exiting on signal: %s", strings.ToUpper(osSignal.String()))
    			daemon.SdNotify(false, daemon.SdNotifyStopping)
    			exit(stopProcess())
    		case signal := <-globalServiceSignalCh:
    			switch signal {
    			case serviceRestart:
    				logger.Info("Restarting on service signal")
    				daemon.SdNotify(false, daemon.SdNotifyReloading)
    				stop := stopProcess()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 17:57:52 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. src/syscall/syscall_js.go

    }
    
    // A Signal is a number describing a process signal.
    // It implements the [os.Signal] interface.
    type Signal int
    
    const (
    	_ Signal = iota
    	SIGCHLD
    	SIGINT
    	SIGKILL
    	SIGTRAP
    	SIGQUIT
    	SIGTERM
    )
    
    func (s Signal) Signal() {}
    
    func (s Signal) String() string {
    	if 0 <= s && int(s) < len(signals) {
    		str := signals[s]
    		if str != "" {
    			return str
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultFileLockManagerAwaitableFileLockReleasedSignalTest.groovy

        @Subject def signal = new DefaultFileLockManager.AwaitableFileLockReleasedSignal()
    
        def "can reuse signal"() {
            given:
            def signalCount = new AtomicInteger()
    
            when:
            start {
                while (signalCount.get() < 2) {
                    def signaled = signal.await(10000)
                    if (signaled) {
                        signalCount.incrementAndGet()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. src/runtime/sigqueue.go

    		}
    	}
    }
    
    // signalWaitUntilIdle waits until the signal delivery mechanism is idle.
    // This is used to ensure that we do not drop a signal notification due
    // to a race between disabling a signal and receiving a signal.
    // This assumes that signal delivery has already been disabled for
    // the signal(s) in question, and here we are just waiting to make sure
    // that all the signals have been delivered to the user channels
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/ExponentialBackoff.java

        }
    
        public static <T extends Signal> ExponentialBackoff<T> of(int amount, TimeUnit unit, T signal) {
            return new ExponentialBackoff<T>((int) TimeUnit.MILLISECONDS.convert(amount, unit), signal, SLOT_TIME);
        }
    
        public static ExponentialBackoff<Signal> of(int amount, TimeUnit unit, int slotTime, TimeUnit slotTimeUnit) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:49:35 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/locklistener/DefaultFileLockContentionHandlerTest.groovy

        }
    
        def "client receives signal when lock is released"() {
            def signaled = new AtomicBoolean()
    
            when:
            int port = handler.reservePort()
            handler.start(10) { signal ->
                signal.trigger()
            }
    
            client.reservePort()
            client.start(11) {}
            client.maybePingOwner(port, 10, "lock 1", 50000) {
                signaled.set(true)
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testcshared/testdata/libgo5/libgo5.go

    package main
    
    import "C"
    
    import (
    	"os"
    	"os/signal"
    	"syscall"
    	"time"
    )
    
    // The channel used to read SIGIO signals.
    var sigioChan chan os.Signal
    
    // CatchSIGIO starts catching SIGIO signals.
    //
    //export CatchSIGIO
    func CatchSIGIO() {
    	sigioChan = make(chan os.Signal, 1)
    	signal.Notify(sigioChan, syscall.SIGIO)
    }
    
    // ResetSIGIO stops catching SIGIO signals.
    //
    //export ResetSIGIO
    func ResetSIGIO() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 986 bytes
    - Viewed (0)
  10. pkg/kubelet/eviction/api/types.go

    	OpLessThan ThresholdOperator = "LessThan"
    )
    
    // OpForSignal maps Signals to ThresholdOperators.
    // Today, the only supported operator is "LessThan". This may change in the future,
    // for example if "consumed" (as opposed to "available") type signals are added.
    // In both cases the directionality of the threshold is implicit to the signal type
    // (for a given signal, the decision to evict will be made when crossing the threshold
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top