Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 799 for kill (0.05 sec)

  1. src/runtime/testdata/testprog/segv.go

    func init() {
    	register("Segv", Segv)
    }
    
    var Sum int
    
    func Segv() {
    	c := make(chan bool)
    	go func() {
    		close(c)
    		for i := 0; ; i++ {
    			Sum += i
    		}
    	}()
    
    	<-c
    
    	syscall.Kill(syscall.Getpid(), 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
    - 479 bytes
    - Viewed (0)
  2. src/all.bat

    L2::: Use of this source code is governed by a BSD-style
    L3::: license that can be found in the LICENSE file.
    L4:
    L5:@echo off
    L6:
    L7:setlocal
    L8:
    L9:if exist make.bat goto ok
    L10:echo all.bat must be run from go\src
    L11::: cannot exit: would kill parent command interpreter
    L12:goto end
    L13::ok
    L14:
    L15:call .\make.bat --no-banner --no-local
    L16:if %GOBUILDFAIL%==1 goto end
    L17:call .\run.bat --no-rebuild --no-local
    L18:if %GOBUILDFAIL%==1 goto end
    L19:"%GOTOOLDIR%/dist" banner
    L20:
    ...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:36:22 UTC 2023
    - 543 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testsanitizers/testdata/tsan10.go

    )
    
    /*
    #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)
  4. buildscripts/rewrite-old-new.sh

    		minio/healing-rewrite-bucket/ \
    		--disable-multipart --quiet
    
    	"${WORK_DIR}/mc" cp \
    		buildscripts/verify-build.sh \
    		minio/healing-rewrite-bucket/ \
    		--disable-multipart --quiet
    
    	kill ${pid}
    	sleep 3
    
    	"${MINIO[@]}" --address ":$start_port" "${WORK_DIR}/xl{1...16}" >"${WORK_DIR}/server1.log" 2>&1 &
    	pid=$!
    	disown $pid
    
    	"${WORK_DIR}/mc" ready minio/
    
    	if ! ps -p ${pid} 1>&2 >/dev/null; then
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprogcgo/segv.go

    import "syscall"
    
    func init() {
    	register("SegvInCgo", SegvInCgo)
    }
    
    func SegvInCgo() {
    	c := make(chan bool)
    	go func() {
    		close(c)
    		for {
    			C.nop()
    		}
    	}()
    
    	<-c
    
    	syscall.Kill(syscall.Getpid(), 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
    - 525 bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/start_windows.go

    )
    
    func init() {
    	daemonize = daemonizeWindows
    }
    
    func daemonizeWindows(cmd *exec.Cmd) {
    	// Set DETACHED_PROCESS creation flag so that closing
    	// the console window the parent process was run in
    	// does not kill the child.
    	// See documentation of creation flags in the Microsoft documentation:
    	// https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 732 bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/cmd/bisect/go120.go

    		// On timeout, send interrupt,
    		// in hopes of shutting down process tree.
    		// Ignore errors sending signal; it's all best effort
    		// and not even implemented on Windows.
    		// TODO(rsc): Maybe use a new process group and kill the whole group?
    		cmd.Process.Signal(os.Interrupt)
    		return nil
    	}
    	cmd.WaitDelay = 2 * time.Second
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:10 UTC 2023
    - 628 bytes
    - Viewed (0)
  8. src/internal/testenv/testenv_unix.go

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package testenv
    
    import (
    	"errors"
    	"io/fs"
    	"syscall"
    )
    
    // Sigquit is the signal to send to kill a hanging subprocess.
    // Send SIGQUIT to get a stack trace.
    var Sigquit = syscall.SIGQUIT
    
    func syscallIsNotSupported(err error) bool {
    	if err == nil {
    		return false
    	}
    
    	var errno syscall.Errno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 17:44:01 UTC 2023
    - 994 bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/hooks.go

    	var err error
    	func() {
    		// don't let the hook *accidentally* panic and kill the server
    		defer utilruntime.HandleCrash()
    		err = entry.hook(context)
    	}()
    	// if the hook intentionally wants to kill server, let it.
    	if err != nil {
    		klog.Fatalf("PostStartHook %q failed: %v", name, err)
    	}
    	close(entry.done)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/script_wait.txt

    ! stdout foo
    
    # Wait should set the output to the concatenated outputs of the background
    # programs, in the order in which they were started.
    wait
    stdout 'foo\nbar'
    
    # The end of the test should interrupt or kill any remaining background
    # programs, but that should not cause the test to fail if it does not
    # care about the exit status of those programs.
    [exec:sleep] ? exec sleep 86400 &
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:10 UTC 2022
    - 693 bytes
    - Viewed (0)
Back to top