- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for BigVal (0.11 sec)
-
src/os/exec_plan9.go
"runtime" "syscall" "time" ) // The only signal values guaranteed to be present in the os package // on all systems are Interrupt (send the process an interrupt) and // Kill (force the process to exit). Interrupt is not implemented on // Windows; using it with [os.Process.Signal] will return an error. var ( Interrupt Signal = syscall.Note("interrupt") Kill Signal = syscall.Note("kill") )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 3.4K bytes - Viewed (0) -
src/os/exec_test.go
} c := make(chan os.Signal, 1) signal.Notify(c, os.Interrupt) defer signal.Stop(c) p := &os.Process{Pid: os.Getpid()} if err := p.Signal(os.Interrupt); err != nil { t.Fatalf("Signal got err %v, want nil", err) } // Verify we actually received the signal. select { case <-time.After(1 * time.Second): t.Error("timeout waiting for signal") case <-c: // Good } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 18:08:44 UTC 2024 - 1.8K bytes - Viewed (0) -
src/os/exec_unix.go
} p.pidDeactivate(statusDone) return &ProcessState{ pid: pid1, status: status, rusage: &rusage, }, nil } func (p *Process) signal(sig Signal) error { s, ok := sig.(syscall.Signal) if !ok { return errors.New("os: unsupported signal type") } // Which type of Process do we have? switch p.mode { case modeHandle: // pidfd return p.pidfdSendSignal(s) case modePID:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 4.1K bytes - Viewed (0) -
src/os/exec_posix.go
"runtime" "syscall" ) // The only signal values guaranteed to be present in the os package on all // systems are os.Interrupt (send the process an interrupt) and os.Kill (force // the process to exit). On Windows, sending os.Interrupt to a process with // os.Process.Signal is not implemented; it will return an error instead of // sending a signal. var ( Interrupt Signal = syscall.SIGINT Kill Signal = syscall.SIGKILL )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 3.7K bytes - Viewed (0) -
src/os/exec.go
// may not execute properly or even compile on some // operating systems. Sys *syscall.SysProcAttr } // A Signal represents an operating system signal. // The usual underlying implementation is operating system-dependent: // on Unix it is syscall.Signal. type Signal interface { String() string Signal() // to distinguish from other Stringers } // Getpid returns the process id of the caller.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 12.8K bytes - Viewed (0) -
src/os/exec_unix_test.go
t.Skipf("starting test process: %v", err) } defer p.Kill() proc, err := FindProcess(p.Pid) if err != nil { t.Errorf("OS reported error for running process: %v", err) } err = proc.Signal(syscall.Signal(0)) if err != nil { t.Errorf("OS reported error for running process: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 18:08:44 UTC 2024 - 2K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/integTest/groovy/org/gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
assertConfirmationCount(build3) additionalRequests == 0 } def "the lock holder confirms lock releases to multiple requesters"() { given: def signal setupLockOwner() { s -> signal = s } when: // Debug logging might have logged exceptions from other Gradle systems, e.g. execution engine, so we disable stacktrace checks
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 15.1K bytes - Viewed (0) -
src/os/pidfd_linux_test.go
// "done" Process. if err := proc.Kill(); err != os.ErrProcessDone { t.Errorf("Kill: got %v, want %v", err, os.ErrProcessDone) } if err := proc.Signal(os.Kill); err != os.ErrProcessDone { t.Errorf("Signal: got %v, want %v", err, os.ErrProcessDone) } if _, err := proc.Wait(); !errors.Is(err, syscall.ECHILD) { t.Errorf("Wait: got %v, want %v", err, os.ErrProcessDone) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 18:08:44 UTC 2024 - 1.6K bytes - Viewed (0) -
src/os/pidfd_other.go
return 0, syscall.ENOSYS } func (p *Process) pidfdRelease() {} func (_ *Process) pidfdWait() (*ProcessState, error) { panic("unreachable") } func (_ *Process) pidfdSendSignal(_ syscall.Signal) error { panic("unreachable")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 692 bytes - Viewed (0) -
src/os/exec_windows.go
if e != nil { return nil, NewSyscallError("GetProcessTimes", e) } defer p.Release() return &ProcessState{p.Pid, syscall.WaitStatus{ExitCode: ec}, &u}, nil } func (p *Process) signal(sig Signal) error { handle, status := p.handleTransientAcquire() switch status { case statusDone: return ErrProcessDone case statusReleased: return syscall.EINVAL } defer p.handleTransientRelease()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 5K bytes - Viewed (0)