Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 506 for signalM (0.12 sec)

  1. src/cmd/cgo/internal/testcarchive/testdata/libgo4/libgo4.go

    package main
    
    /*
    #include <signal.h>
    #include <pthread.h>
    
    // Raise SIGIO.
    static void CRaiseSIGIO(pthread_t* p) {
    	pthread_kill(*p, SIGIO);
    }
    */
    import "C"
    
    import (
    	"os"
    	"os/signal"
    	"sync/atomic"
    	"syscall"
    )
    
    var sigioCount int32
    
    // Catch SIGIO.
    //
    //export GoCatchSIGIO
    func GoCatchSIGIO() {
    	c := make(chan os.Signal, 1)
    	signal.Notify(c, syscall.SIGIO)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 854 bytes
    - Viewed (0)
  2. src/runtime/sigqueue_plan9.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: Tue Apr 05 17:54:15 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  3. src/runtime/sys_libc.go

    		// first call on an M, until that libcCall instance
    		// returns.  Reentrance only matters for signals, as
    		// libc never calls back into Go.  The tricky case is
    		// where we call libcX from an M and record g/pc/sp.
    		// Before that call returns, a signal arrives on the
    		// same M and the signal handling code calls another
    		// libc function.  We don't want that second libcCall
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  4. src/internal/fuzz/sys_windows.go

    	return false
    }
    
    // terminationSignal returns -1 and false because Windows doesn't have signals.
    func terminationSignal(err error) (os.Signal, bool) {
    	return syscall.Signal(-1), false
    }
    
    // isCrashSignal is not implemented because Windows doesn't have signals.
    func isCrashSignal(signal os.Signal) bool {
    	panic("not implemented: no signals on windows")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:35:25 UTC 2023
    - 4.5K 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/cmd/go/testdata/script/test_fuzz_non_crash_signal.txt

    # FuzzKill sends itself a signal that cannot be caught by the worker process
    # and does not appear to be a crash.
    # We should not save a crasher.
    ! go test -fuzz=FuzzKill
    ! exists testdata
    ! stdout unreachable
    ! stderr unreachable
    stdout 'fuzzing process terminated by unexpected signal; no crash will be recorded: signal: killed'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprogcgo/exec.go

    //go:build !plan9 && !windows
    // +build !plan9,!windows
    
    package main
    
    /*
    #include <stddef.h>
    #include <signal.h>
    #include <pthread.h>
    
    // Save the signal mask at startup so that we see what it is before
    // the Go runtime starts setting up signals.
    
    static sigset_t mask;
    
    static void init(void) __attribute__ ((constructor));
    
    static void init() {
    	sigemptyset(&mask);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  8. src/os/exec_test.go

    	signal.Notify(c, os.Interrupt)
    	defer signal.Stop(c)
    
    	p := &os.Process{Pid: os.Getpid()}
    	if err := p.Signal(os.Interrupt); err != nil {
    		t.Fatalf("Signal got err %v, want nil", err)
    	}
    
    	// Verify we actually received the signal.
    	select {
    	case <-time.After(1 * time.Second):
    		t.Error("timeout waiting for signal")
    	case <-c:
    		// Good
    	}
    }
    
    func TestProcessReleaseTwice(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. src/runtime/signal_solaris.go

    	/* 56 */ {_SigNotify, "real time signal"},
    	/* 57 */ {_SigNotify, "real time signal"},
    	/* 58 */ {_SigNotify, "real time signal"},
    	/* 59 */ {_SigNotify, "real time signal"},
    	/* 60 */ {_SigNotify, "real time signal"},
    	/* 61 */ {_SigNotify, "real time signal"},
    	/* 62 */ {_SigNotify, "real time signal"},
    	/* 63 */ {_SigNotify, "real time signal"},
    	/* 64 */ {_SigNotify, "real time signal"},
    	/* 65 */ {_SigNotify, "real time signal"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 20:27:15 UTC 2019
    - 4.5K bytes
    - Viewed (0)
  10. src/os/signal/signal_linux_test.go

    // license that can be found in the LICENSE file.
    
    //go:build linux
    
    package signal
    
    import (
    	"os"
    	"syscall"
    	"testing"
    	"time"
    )
    
    const prSetKeepCaps = 8
    
    // This test validates that syscall.AllThreadsSyscall() can reliably
    // reach all 'm' (threads) of the nocgo runtime even when one thread
    // is blocked waiting to receive signals from the kernel. This monitors
    // for a regression vs. the fix for #43149.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.1K bytes
    - Viewed (0)
Back to top