Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,052 for signalfd (0.16 sec)

  1. pkg/ctrlz/ctrlz_test.go

    		t.Fatal("Timed out waiting for listeningTestProbe to be called")
    	}
    }
    
    func TestSignals(t *testing.T) {
    	c := make(chan os.Signal, 1)
    	signal.Notify(c, syscall.SIGUSR1)
    	server := startAndWaitForServer(t)
    	defer server.Close()
    	reloadURL := fmt.Sprintf("http://%v/signalj/SIGUSR1", server.Address())
    	resp, err := http.DefaultClient.Post(reloadURL, "text/plain", nil)
    	if err != nil {
    		t.Fatalf("Run: %v", err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 15 18:23:41 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/filters/mux_discovery_complete_test.go

    		{
    			name:                             "no signals, no key in the ctx",
    			expectNoMuxAndDiscoIncompleteKey: true,
    		},
    		{
    			name:                             "signal ready, no key in the ctx",
    			muxAndDiscoveryCompleteSignal:    func() chan struct{} { ch := make(chan struct{}); close(ch); return ch }(),
    			expectNoMuxAndDiscoIncompleteKey: true,
    		},
    		{
    			name:                          "signal not ready, the key in the ctx",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 19 11:26:59 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  3. pkg/windows/service/service.go

    			case svc.Interrogate:
    				s <- c.CurrentStatus
    			case svc.Stop, svc.Shutdown:
    				klog.Infof("Service stopping")
    				// We need to translate this request into a signal that can be handled by the signal handler
    				// handling shutdowns normally (currently apiserver/pkg/server/signal.go).
    				// If we do not do this, our main threads won't be notified of the upcoming shutdown.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 24 11:25:33 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  4. src/sync/cond_test.go

    	}
    	for n > 0 {
    		select {
    		case <-awake:
    			t.Fatal("goroutine not asleep")
    		default:
    		}
    		m.Lock()
    		c.Signal()
    		m.Unlock()
    		<-awake // Will deadlock if no goroutine wakes up
    		select {
    		case <-awake:
    			t.Fatal("too many goroutines awake")
    		default:
    		}
    		n--
    	}
    	c.Signal()
    }
    
    func TestCondSignalGenerations(t *testing.T) {
    	var m Mutex
    	c := NewCond(&m)
    	n := 100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 22 18:52:42 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. src/runtime/os_aix.go

    		exit(1)
    	}
    
    	if pthread_attr_setdetachstate(&attr, _PTHREAD_CREATE_DETACHED) != 0 {
    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    
    	// Disable signals during create, so that the new thread starts
    	// with signals disabled. It will enable them in minit.
    	sigprocmask(_SIG_SETMASK, &sigset_all, &oset)
    	var ret int32
    	for tries := 0; tries < 20; tries++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. src/runtime/preempt.go

    // the thread using an OS mechanism (e.g., signals) and inspecting its
    // state to determine if the goroutine was at an asynchronous
    // safe-point. Since the thread suspension itself is generally
    // asynchronous, it also checks if the running goroutine wants to be
    // preempted, since this could have changed. If all conditions are
    // satisfied, it adjusts the signal context to make it look like the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_signal_ios_arm64.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Emulation of the Unix signal SIGSEGV.
    //
    // On iOS, Go tests and apps under development are run by lldb.
    // The debugger uses a task-level exception handler to intercept signals.
    // Despite having a 'handle' mechanism like gdb, lldb will not allow a
    // SIGSEGV to pass to the running program. For Go, this means we cannot
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:04:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. src/syscall/exec_pdeathsig_test.go

    	}
    	cmd.Wait()
    	os.Exit(0)
    }
    
    func deathSignalChild() {
    	c := make(chan os.Signal, 1)
    	signal.Notify(c, syscall.SIGUSR1)
    	go func() {
    		<-c
    		fmt.Println("ok")
    		os.Exit(0)
    	}()
    	fmt.Println("start")
    
    	buf := make([]byte, 32)
    	os.Stdin.Read(buf)
    
    	// We expected to be signaled before stdin closed
    	fmt.Println("not ok")
    	os.Exit(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 21:23:17 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. src/syscall/syscall_bsd.go

    }
    
    func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != 0 }
    
    func (w WaitStatus) Signal() Signal {
    	sig := Signal(w & mask)
    	if sig == stopped || sig == 0 {
    		return -1
    	}
    	return sig
    }
    
    func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 }
    
    func (w WaitStatus) Stopped() bool { return w&mask == stopped && Signal(w>>shift) != SIGSTOP }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 10:34:48 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  10. src/runtime/testdata/testprogcgo/raceprof.go

    //go:build unix
    // +build unix
    
    package main
    
    // Test that we can collect a lot of colliding profiling signals from
    // an external C thread. This used to fail when built with the race
    // detector, because a call of the predeclared function copy was
    // turned into a call to runtime.slicecopy, which is not marked nosplit.
    
    /*
    #include <signal.h>
    #include <stdint.h>
    #include <pthread.h>
    #include <sched.h>
    
    struct cgoTracebackArg {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 18:13:14 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top