Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 460 for signalfd (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/runtime/cpuprof.go

    	log  *profBuf // profile events written here
    
    	// extra holds extra stacks accumulated in addNonGo
    	// corresponding to profiling signals arriving on
    	// non-Go-created threads. Those stacks are written
    	// to log the next time a normal Go thread gets the
    	// signal handler.
    	// Assuming the stacks are 2 words each (we don't get
    	// a full traceback from those threads), plus one word
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. src/syscall/syscall_wasip1.go

    	return e == EINTR || e == EMFILE || e.Timeout()
    }
    
    func (e Errno) Timeout() bool {
    	return e == EAGAIN || e == ETIMEDOUT
    }
    
    // A Signal is a number describing a process signal.
    // It implements the [os.Signal] interface.
    type Signal uint8
    
    const (
    	SIGNONE Signal = iota
    	SIGHUP
    	SIGINT
    	SIGQUIT
    	SIGILL
    	SIGTRAP
    	SIGABRT
    	SIGBUS
    	SIGFPE
    	SIGKILL
    	SIGUSR1
    	SIGSEGV
    	SIGUSR2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. pkg/queue/instance.go

    }
    
    // Instance of work tickets processed using a rate-limiting loop
    type baseInstance interface {
    	// Push a task.
    	Push(task Task)
    	// Run the loop until a signal on the channel
    	Run(<-chan struct{})
    	// Closed returns a chan that will be signaled when the Instance has stopped processing tasks.
    	Closed() <-chan struct{}
    }
    
    type Instance interface {
    	baseInstance
    	// HasSynced returns true once the queue has synced.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  9. src/runtime/testdata/testprogcgo/pprof_callback.go

    }
    
    //export goCallbackPprof
    func goCallbackPprof() {
    	// No-op. We want to stress the cgocall and cgocallback internals,
    	// landing as many pprof signals there as possible.
    }
    
    func CgoPprofCallback() {
    	// Issue 50936 was a crash in the SIGPROF handler when the signal
    	// arrived during the exitsyscall following a cgocall(back) in dropg or
    	// execute, when updating mp.curg.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 08 15:44:05 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  10. src/runtime/vdso_test.go

    		t.Logf("%s", out)
    	}
    	if err != nil {
    		if err := err.(*exec.ExitError); err != nil && err.Sys().(syscall.WaitStatus).Signaled() {
    			if !bytes.Contains(out, []byte("+++ killed by")) {
    				// strace itself occasionally crashes.
    				// Here, it exited with a signal, but
    				// the strace log didn't report any
    				// signal from the child process.
    				t.Log(err)
    				testenv.SkipFlaky(t, 63734)
    			}
    		}
    		t.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 17 19:47:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top