Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 902 for kill (0.05 sec)

  1. 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)
  2. src/runtime/testdata/testprog/signal.go

    //go:build !windows && !plan9
    // +build !windows,!plan9
    
    package main
    
    import (
    	"syscall"
    	"time"
    )
    
    func init() {
    	register("SignalExitStatus", SignalExitStatus)
    }
    
    func SignalExitStatus() {
    	syscall.Kill(syscall.Getpid(), syscall.SIGTERM)
    
    	// Should die immediately, but we've seen flakiness on various
    	// systems (see issue 14063). It's possible that the signal is
    	// being delivered to a different thread and we are returning
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 861 bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. src/syscall/syscall_ptrace_test.go

    	}
    
    	attr := &os.ProcAttr{
    		Sys: &syscall.SysProcAttr{
    			Ptrace: true,
    		},
    	}
    	proc, err := os.StartProcess(bin, []string{bin}, attr)
    	if err == nil {
    		proc.Kill()
    	}
    	if err != nil && !os.IsPermission(err) {
    		t.Fatalf("StartProcess with ptrace enabled failed: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 768 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testsanitizers/testdata/tsan12.go

    	ch := make(chan os.Signal, 1)
    	signal.Notify(ch, syscall.SIGUSR1)
    
    	if err := exec.Command("true").Run(); err != nil {
    		fmt.Fprintf(os.Stderr, "Unexpected error from `true`: %v", err)
    		os.Exit(1)
    	}
    
    	syscall.Kill(syscall.Getpid(), syscall.SIGUSR1)
    	<-ch
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 929 bytes
    - Viewed (0)
  8. cluster/images/etcd/migrate/migrate_server.go

    				// keep waiting
    			} else {
    				klog.Infof("Etcd on port %d is up.", r.cfg.port)
    				r.cmd = etcdCmd
    				return nil
    			}
    		case <-done:
    			err = etcdCmd.Process.Kill()
    			if err != nil {
    				return fmt.Errorf("error killing etcd: %v", err)
    			}
    			return fmt.Errorf("timed out waiting for etcd on port %d", r.cfg.port)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 30 16:29:59 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  9. src/packaging/common/systemd/fess.service

    # in fess.yml and 'MAX_LOCKED_MEMORY=unlimited' in ${packaging.env.file}
    #LimitMEMLOCK=infinity
    
    # Shutdown delay in seconds, before process is tried to be killed with KILL (if configured)
    TimeoutStopSec=20
    
    [Install]
    WantedBy=multi-user.target
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sun Jan 15 06:32:15 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. src/runtime/testdata/testprognet/signalexec.go

    			cmd.Stdout = os.Stdout
    			cmd.Stderr = os.Stderr
    			if err := cmd.Run(); err != nil {
    				fmt.Printf("Start failed: %v", err)
    			}
    		}()
    		go func() {
    			defer wg.Done()
    			syscall.Kill(-pgrp, syscall.SIGWINCH)
    		}()
    	}
    
    	signal.Stop(c)
    	close(c)
    	wg.Wait()
    
    	fmt.Println("OK")
    }
    
    func Nop() {
    	// This is just for SignalDuringExec.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.3K bytes
    - Viewed (0)
Back to top