Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for exitStatus (0.16 sec)

  1. src/os/exec_plan9.go

    func (p *ProcessState) Pid() int {
    	return p.pid
    }
    
    func (p *ProcessState) exited() bool {
    	return p.status.Exited()
    }
    
    func (p *ProcessState) success() bool {
    	return p.status.ExitStatus() == 0
    }
    
    func (p *ProcessState) sys() any {
    	return p.status
    }
    
    func (p *ProcessState) sysUsage() any {
    	return p.status
    }
    
    func (p *ProcessState) userTime() time.Duration {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/os/exec_posix.go

    func (p *ProcessState) Pid() int {
    	return p.pid
    }
    
    func (p *ProcessState) exited() bool {
    	return p.status.Exited()
    }
    
    func (p *ProcessState) success() bool {
    	return p.status.ExitStatus() == 0
    }
    
    func (p *ProcessState) sys() any {
    	return p.status
    }
    
    func (p *ProcessState) sysUsage() any {
    	return p.rusage
    }
    
    func (p *ProcessState) String() string {
    	if p == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. pkg/probe/exec/exec.go

    	if err == nil {
    		err = e.Wait()
    	}
    	data := dataBuffer.Bytes()
    
    	klog.V(4).Infof("Exec probe response: %q", string(data))
    	if err != nil {
    		exit, ok := err.(exec.ExitError)
    		if ok {
    			if exit.ExitStatus() == 0 {
    				return probe.Success, string(data), nil
    			}
    			return probe.Failure, string(data), nil
    		}
    
    		if errors.Is(err, remote.ErrCommandTimedOut) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. pkg/probe/exec/exec_test.go

    	return f.Error()
    }
    
    func (f *fakeExitError) Error() string {
    	return "fake exit"
    }
    
    func (f *fakeExitError) Exited() bool {
    	return f.exited
    }
    
    func (f *fakeExitError) ExitStatus() int {
    	return f.statusCode
    }
    
    func TestExec(t *testing.T) {
    	prober := New()
    
    	tenKilobyte := strings.Repeat("logs-123", 128*10)      // 8*128*10=10240 = 10KB of text.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. src/syscall/syscall_aix.go

    func (w WaitStatus) StopSignal() Signal {
    	if !w.Stopped() {
    		return -1
    	}
    	return Signal(w>>8) & 0xFF
    }
    
    func (w WaitStatus) Exited() bool { return w&0xFF == 0 }
    func (w WaitStatus) ExitStatus() int {
    	if !w.Exited() {
    		return -1
    	}
    	return int((w >> 8) & 0xFF)
    }
    
    func (w WaitStatus) Signaled() bool { return w&0x40 == 0 && w&0xFF != 0 }
    func (w WaitStatus) Signal() Signal {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. src/syscall/syscall_linux.go

    func (w WaitStatus) Continued() bool { return w == 0xFFFF }
    
    func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 }
    
    func (w WaitStatus) ExitStatus() int {
    	if !w.Exited() {
    		return -1
    	}
    	return int(w>>shift) & 0xFF
    }
    
    func (w WaitStatus) Signal() Signal {
    	if !w.Signaled() {
    		return -1
    	}
    	return Signal(w & mask)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
Back to top