Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 920 for SIGNAL (0.1 sec)

  1. src/cmd/cgo/internal/testcarchive/testdata/main4.c

    		die("sigaction");
    	}
    }
    
    // Test raising SIGIO on a C thread with an alternate signal stack
    // when there is a Go signal handler for SIGIO.
    static void* thread1(void* arg __attribute__ ((unused))) {
    	stack_t ss;
    	int i;
    	stack_t nss;
    	struct timespec ts;
    
    	// Set up an alternate signal stack for this thread.
    	memset(&ss, 0, sizeof ss);
    	ss.ss_sp = malloc(CSIGSTKSZ);
    	if (ss.ss_sp == NULL) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_fuzz_non_crash_signal.txt

    [short] skip
    env GOCACHE=$WORK/cache
    
    # FuzzNonCrash sends itself a signal that does not appear to be a crash.
    # We should not save a crasher.
    ! go test -fuzz=FuzzNonCrash
    ! exists testdata
    ! stdout unreachable
    ! stderr unreachable
    stdout 'fuzzing process terminated by unexpected signal; no crash will be recorded: signal: terminated'
    
    # FuzzKill sends itself a signal that cannot be caught by the worker process
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.9K 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/cmd/cgo/internal/testsanitizers/testdata/tsan10.go

    // See https://golang.org/issue/18717.
    
    import (
    	"os"
    	"os/signal"
    	"syscall"
    )
    
    /*
    #cgo CFLAGS: -g -fsanitize=thread
    #cgo LDFLAGS: -g -fsanitize=thread
    */
    import "C"
    
    func main() {
    	c := make(chan os.Signal, 1)
    	signal.Notify(c, syscall.SIGUSR1)
    	defer signal.Stop(c)
    	syscall.Kill(syscall.Getpid(), syscall.SIGUSR1)
    	<-c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 798 bytes
    - Viewed (0)
  5. pkg/util/interrupt/interrupt.go

    	h.once.Do(func() {
    		for _, fn := range h.notify {
    			fn()
    		}
    	})
    }
    
    // Signal is called when an os.Signal is received, and guarantees that all notifications
    // are executed, then the final handler is executed. This function should only be called once
    // per Handler instance.
    func (h *Handler) Signal(s os.Signal) {
    	h.once.Do(func() {
    		for _, fn := range h.notify {
    			fn()
    		}
    		if h.final == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 09:22:35 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. src/syscall/zerrors_linux_arm.go

    	SIGPROF   = Signal(0x1b)
    	SIGPWR    = Signal(0x1e)
    	SIGQUIT   = Signal(0x3)
    	SIGSEGV   = Signal(0xb)
    	SIGSTKFLT = Signal(0x10)
    	SIGSTOP   = Signal(0x13)
    	SIGSYS    = Signal(0x1f)
    	SIGTERM   = Signal(0xf)
    	SIGTRAP   = Signal(0x5)
    	SIGTSTP   = Signal(0x14)
    	SIGTTIN   = Signal(0x15)
    	SIGTTOU   = Signal(0x16)
    	SIGUNUSED = Signal(0x1f)
    	SIGURG    = Signal(0x17)
    	SIGUSR1   = Signal(0xa)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 16:12:50 UTC 2022
    - 57.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go

    // Signals
    const (
    	SIGBUS    = syscall.Signal(0x7)
    	SIGCHLD   = syscall.Signal(0x11)
    	SIGCLD    = syscall.Signal(0x11)
    	SIGCONT   = syscall.Signal(0x12)
    	SIGIO     = syscall.Signal(0x1d)
    	SIGPOLL   = syscall.Signal(0x1d)
    	SIGPROF   = syscall.Signal(0x1b)
    	SIGPWR    = syscall.Signal(0x1e)
    	SIGSTKFLT = syscall.Signal(0x10)
    	SIGSTOP   = syscall.Signal(0x13)
    	SIGSYS    = syscall.Signal(0x1f)
    	SIGTSTP   = syscall.Signal(0x14)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  8. src/os/signal/example_unix_test.go

    //go:build unix
    
    package signal_test
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"os"
    	"os/signal"
    )
    
    var neverReady = make(chan struct{}) // never closed
    
    // This example passes a context with a signal to tell a blocking function that
    // it should abandon its work after a signal is received.
    func ExampleNotifyContext() {
    	ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)
    	defer stop()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 15:34:56 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go

    	SIGFPE      = syscall.Signal(0x8)
    	SIGGRANT    = syscall.Signal(0x3c)
    	SIGHUP      = syscall.Signal(0x1)
    	SIGILL      = syscall.Signal(0x4)
    	SIGINT      = syscall.Signal(0x2)
    	SIGIO       = syscall.Signal(0x17)
    	SIGIOINT    = syscall.Signal(0x10)
    	SIGIOT      = syscall.Signal(0x6)
    	SIGKAP      = syscall.Signal(0x3c)
    	SIGKILL     = syscall.Signal(0x9)
    	SIGLOST     = syscall.Signal(0x6)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 52.4K bytes
    - Viewed (0)
  10. src/os/signal/signal_unix.go

    //go:build unix || (js && wasm) || wasip1 || windows
    
    package signal
    
    import (
    	"os"
    	"syscall"
    )
    
    // Defined by the runtime package.
    func signal_disable(uint32)
    func signal_enable(uint32)
    func signal_ignore(uint32)
    func signal_ignored(uint32) bool
    func signal_recv() uint32
    
    func loop() {
    	for {
    		process(syscall.Signal(signal_recv()))
    	}
    }
    
    func init() {
    	watchSignalLoop = loop
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 1K bytes
    - Viewed (0)
Back to top