Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 977 for kill (0.04 sec)

  1. src/runtime/semasleep_test.go

    	}
    	beforeStart := time.Now()
    	if err := cmd.Start(); err != nil {
    		t.Fatalf("Failed to start command: %v", err)
    	}
    
    	waiting := false
    	doneCh := make(chan error, 1)
    	t.Cleanup(func() {
    		cmd.Process.Kill()
    		if waiting {
    			<-doneCh
    		} else {
    			cmd.Wait()
    		}
    	})
    
    	// Wait for After1 to close its stdout so that we know the runtime's SIGIO
    	// handler is registered.
    	b, err := io.ReadAll(stdout)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/apis/example/v1/types.go

    	// Specifies the hostname of the Pod
    	// If not specified, the pod's hostname will be set to a system-defined value.
    	// +optional
    	Hostname string `json:"hostname,omitempty" protobuf:"bytes,16,opt,name=hostname"`
    	// If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
    	// If not specified, the pod will not have a domainname at all.
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 15:45:02 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. src/cmd/go/internal/vcweb/hg.go

    		cmd.Dir = dir
    		cmd.Env = append(slices.Clip(env), "PWD="+dir)
    
    		cmd.Cancel = func() error {
    			err := cmd.Process.Signal(os.Interrupt)
    			if err != nil && !errors.Is(err, os.ErrProcessDone) {
    				err = cmd.Process.Kill()
    			}
    			return err
    		}
    		// This WaitDelay is arbitrary. After 'hg serve' prints its URL, any further
    		// I/O is only for debugging. (The actual output goes through the HTTP URL,
    		// not the standard I/O streams.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 02:52:19 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. src/runtime/crash_unix_test.go

    	"os/exec"
    	"runtime"
    	"runtime/debug"
    	"strings"
    	"sync"
    	"syscall"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    func init() {
    	if runtime.Sigisblocked(int(syscall.SIGQUIT)) {
    		// We can't use SIGQUIT to kill subprocesses because
    		// it's blocked. Use SIGKILL instead. See issue
    		// #19196 for an example of when this happens.
    		testenv.Sigquit = syscall.SIGKILL
    	}
    }
    
    func TestBadOpen(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 20:11:47 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  5. src/os/exec_windows.go

    	handle, status := p.handleTransientAcquire()
    	switch status {
    	case statusDone:
    		return ErrProcessDone
    	case statusReleased:
    		return syscall.EINVAL
    	}
    	defer p.handleTransientRelease()
    
    	if sig == Kill {
    		var terminationHandle syscall.Handle
    		e := syscall.DuplicateHandle(^syscall.Handle(0), syscall.Handle(handle), ^syscall.Handle(0), &terminationHandle, syscall.PROCESS_TERMINATE, false, 0)
    		if e != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. src/runtime/signal_darwin_amd64.go

    		// than it does for an attempt to access a valid but unmapped address.
    		// OS X 10.9.2 mishandles the malformed address case, making it look like
    		// a user-generated signal (like someone ran kill -SEGV ourpid).
    		// We pass user-generated signals to os/signal, or else ignore them.
    		// Doing that here - and returning to the faulting code - results in an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 23:07:11 UTC 2022
    - 4K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprogcgo/eintr.go

    		defer w.Close()
    		// Spin before calling Write so that the first ReadFull
    		// in the other goroutine will likely be interrupted
    		// by a signal.
    		sendSomeSignals()
    		// This Write will likely be interrupted by a signal
    		// as the other goroutine spins in the middle of reading.
    		// We write enough data that we should always fill the
    		// pipe buffer and need multiple write system calls.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  8. misc/ios/go_ios_exec.go

    			if not err.Success():
    				sys.stderr.write("lldb: failed to launch remote process: %s\n" % (err))
    				process.Kill()
    				debugger.Terminate()
    				sys.exit(1)
    		run_program()
    
    exitStatus = process.GetExitStatus()
    exitDesc = process.GetExitDescription()
    process.Kill()
    debugger.Terminate()
    if exitStatus == 0 and exitDesc is not None:
    	# Ensure tests fail when killed by a signal.
    	exitStatus = 123
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 23.4K bytes
    - Viewed (0)
  9. src/cmd/go/go_unix_test.go

    	cmd.Env = append(slices.Clip(tg.env), tempEnvName()+"="+t.TempDir())
    
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		Setpgid: true,
    	}
    	cmd.Cancel = func() error {
    		pgid := cmd.Process.Pid
    		return syscall.Kill(-pgid, syscall.SIGINT)
    	}
    
    	pipe, err := cmd.StdoutPipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	t.Logf("running %v", cmd)
    	if err := cmd.Start(); err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 16:17:55 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. src/os/pidfd_linux.go

    	}
    	return h, nil
    }
    
    // _P_PIDFD is used as idtype argument to waitid syscall.
    const _P_PIDFD = 3
    
    func (p *Process) pidfdWait() (*ProcessState, error) {
    	// When pidfd is used, there is no wait/kill race (described in CL 23967)
    	// because the PID recycle issue doesn't exist (IOW, pidfd, unlike PID,
    	// is guaranteed to refer to one particular process). Thus, there is no
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top