Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for thrkill (0.17 sec)

  1. src/runtime/os_openbsd.go

    		throw("remapping stack memory failed")
    	}
    }
    
    //go:nosplit
    func raise(sig uint32) {
    	thrkill(getthrid(), int(sig))
    }
    
    func signalM(mp *m, sig int) {
    	thrkill(int32(mp.procid), sig)
    }
    
    // sigPerThreadSyscall is only used on linux, so we assign a bogus signal
    // number.
    const sigPerThreadSyscall = 1 << 31
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. src/runtime/os_openbsd_syscall2.go

    func kqueue() int32
    
    //go:noescape
    func kevent(kq int32, ch *keventt, nch int32, ev *keventt, nev int32, ts *timespec) int32
    
    func raiseproc(sig uint32)
    
    func getthrid() int32
    func thrkill(tid int32, sig int)
    
    // read calls the read system call.
    // It returns a non-negative number of bytes written or a negative errno value.
    func read(fd int32, p unsafe.Pointer, n int32) int32
    
    func closefd(fd int32) int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/runtime/sys_openbsd2.go

    //go:nosplit
    //go:cgo_unsafe_args
    func raiseproc(sig uint32) {
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(raiseproc_trampoline)), unsafe.Pointer(&sig))
    }
    func raiseproc_trampoline()
    
    //go:nosplit
    //go:cgo_unsafe_args
    func thrkill(tid int32, sig int) {
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(thrkill_trampoline)), unsafe.Pointer(&tid))
    }
    func thrkill_trampoline()
    
    // mmap is used to do low-level memory allocation via mmap. Don't allow stack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. pkg/envoy/proxy.go

    	}
    	done := make(chan error, 1)
    	go func() {
    		done <- cmd.Wait()
    	}()
    
    	select {
    	case err := <-abort:
    		log.Warnf("Aborting proxy")
    		if errKill := cmd.Process.Kill(); errKill != nil {
    			log.Warnf("killing proxy caused an error %v", errKill)
    		}
    		return err
    	case err := <-done:
    		return err
    	}
    }
    
    func (e *envoy) Cleanup() {
    	if e.ConfigCleanup {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprogcgo/segv_linux.go

    func init() {
    	register("TgkillSegvInCgo", TgkillSegvInCgo)
    }
    
    func TgkillSegvInCgo() {
    	c := make(chan bool)
    	go func() {
    		close(c)
    		for {
    			C.nop()
    		}
    	}()
    
    	<-c
    
    	syscall.Tgkill(syscall.Getpid(), syscall.Gettid(), syscall.SIGSEGV)
    
    	// Wait for the OS to deliver the signal.
    	C.pause()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 05 15:24:08 UTC 2023
    - 546 bytes
    - Viewed (0)
  6. src/runtime/testdata/testprog/segv_linux.go

    }
    
    func TgkillSegv() {
    	c := make(chan bool)
    	go func() {
    		close(c)
    		for i := 0; ; i++ {
    			// Sum defined in segv.go.
    			Sum += i
    		}
    	}()
    
    	<-c
    
    	syscall.Tgkill(syscall.Getpid(), syscall.Gettid(), syscall.SIGSEGV)
    
    	// Wait for the OS to deliver the signal.
    	select {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 05 15:24:08 UTC 2023
    - 517 bytes
    - Viewed (0)
  7. src/runtime/os_freebsd.go

    //
    // It must be nosplit because it is used by the signal handler before
    // it definitely has a Go stack.
    //
    //go:nosplit
    func raise(sig uint32) {
    	thr_kill(thr_self(), int(sig))
    }
    
    func signalM(mp *m, sig int) {
    	thr_kill(thread(mp.procid), sig)
    }
    
    // sigPerThreadSyscall is only used on linux, so we assign a bogus signal
    // number.
    const sigPerThreadSyscall = 1 << 31
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/liveness/plive.go

    type blockEffects struct {
    	// Computed during Liveness.prologue using only the content of
    	// individual blocks:
    	//
    	//	uevar: upward exposed variables (used before set in block)
    	//	varkill: killed variables (set in block)
    	uevar   bitvec.BitVec
    	varkill bitvec.BitVec
    
    	// Computed during Liveness.solve using control flow information:
    	//
    	//	livein: variables live at block entry
    	//	liveout: variables live at block exit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  9. src/runtime/export_debug_test.go

    // arguments and return space) for fn, or nil. tkill must be a function that
    // will send SIGTRAP to thread ID tid. gp must be locked to its OS thread and
    // running.
    //
    // On success, InjectDebugCall returns the panic value of fn or nil.
    // If fn did not panic, its results will be available in args.
    func InjectDebugCall(gp *g, fn any, regArgs *abi.RegArgs, stackArgs any, tkill func(tid int) error, returnOnUnsafePoint bool) (any, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. src/syscall/zsysnum_freebsd_amd64.go

    	SYS_THR_EXIT                 = 431 // { void thr_exit(long *state); }
    	SYS_THR_SELF                 = 432 // { int thr_self(long *id); }
    	SYS_THR_KILL                 = 433 // { int thr_kill(long id, int sig); }
    	SYS__UMTX_LOCK               = 434 // { int _umtx_lock(struct umtx *umtx); }
    	SYS__UMTX_UNLOCK             = 435 // { int _umtx_unlock(struct umtx *umtx); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 01:17:28 UTC 2022
    - 25.5K bytes
    - Viewed (0)
Back to top