Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for exitStatus (0.15 sec)

  1. pkg/util/iptables/iptables.go

    	runner.mu.Lock()
    	defer runner.mu.Unlock()
    
    	out, err := runner.run(opCreateChain, fullArgs)
    	if err != nil {
    		if ee, ok := err.(utilexec.ExitError); ok {
    			if ee.Exited() && ee.ExitStatus() == 1 {
    				return true, nil
    			}
    		}
    		return false, fmt.Errorf("error creating chain %q: %v: %s", chain, err, out)
    	}
    	return false, nil
    }
    
    // FlushChain is part of Interface.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 28.6K bytes
    - Viewed (0)
  2. src/syscall/syscall_wasip1.go

    	S_IXGRP = 010
    
    	S_IRWXO = 07
    	S_IROTH = 04
    	S_IWOTH = 02
    	S_IXOTH = 01
    )
    
    type WaitStatus uint32
    
    func (w WaitStatus) Exited() bool       { return false }
    func (w WaitStatus) ExitStatus() int    { return 0 }
    func (w WaitStatus) Signaled() bool     { return false }
    func (w WaitStatus) Signal() Signal     { return 0 }
    func (w WaitStatus) CoreDump() bool     { return false }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. src/syscall/syscall_plan9.go

    }
    
    type Waitmsg struct {
    	Pid  int
    	Time [3]uint32
    	Msg  string
    }
    
    func (w Waitmsg) Exited() bool   { return true }
    func (w Waitmsg) Signaled() bool { return false }
    
    func (w Waitmsg) ExitStatus() int {
    	if len(w.Msg) == 0 {
    		// a normal exit returns no message
    		return 0
    	}
    	return 1
    }
    
    //sys	await(s []byte) (n int, err error)
    
    func Await(w *Waitmsg) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/syscall/syscall_bsd.go

    type WaitStatus uint32
    
    const (
    	mask  = 0x7F
    	core  = 0x80
    	shift = 8
    
    	exited  = 0
    	stopped = 0x7F
    )
    
    func (w WaitStatus) Exited() bool { return w&mask == exited }
    
    func (w WaitStatus) ExitStatus() int {
    	if w&mask != exited {
    		return -1
    	}
    	return int(w >> shift)
    }
    
    func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != 0 }
    
    func (w WaitStatus) Signal() Signal {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 10:34:48 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  5. pkg/volume/iscsi/iscsi_util.go

    	// create new iface
    	out, err = execWithLog(b, "iscsiadm", "-m", "iface", "-I", b.Iface, "-o", "new")
    	if err != nil {
    		exit, ok := err.(utilexec.ExitError)
    		if ok && exit.ExitStatus() == iscsiadmErrorSessExists {
    			klog.Infof("iscsi: there is a session already logged in with iface %s", b.Iface)
    		} else {
    			lastErr = fmt.Errorf("iscsi: failed to create new iface: %s (%v)", out, err)
    			return lastErr
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 22 12:53:01 UTC 2022
    - 34.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_bsd.go

    const (
    	mask  = 0x7F
    	core  = 0x80
    	shift = 8
    
    	exited  = 0
    	killed  = 9
    	stopped = 0x7F
    )
    
    func (w WaitStatus) Exited() bool { return w&mask == exited }
    
    func (w WaitStatus) ExitStatus() int {
    	if w&mask != exited {
    		return -1
    	}
    	return int(w >> shift)
    }
    
    func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != 0 }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 15K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/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 Nov 29 21:28:33 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  8. src/syscall/syscall_solaris.go

    const (
    	mask  = 0x7F
    	core  = 0x80
    	shift = 8
    
    	exited  = 0
    	stopped = 0x7F
    )
    
    func (w WaitStatus) Exited() bool { return w&mask == exited }
    
    func (w WaitStatus) ExitStatus() int {
    	if w&mask != exited {
    		return -1
    	}
    	return int(w >> shift)
    }
    
    func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != 0 }
    
    func (w WaitStatus) Signal() Signal {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_solaris.go

    const (
    	mask  = 0x7F
    	core  = 0x80
    	shift = 8
    
    	exited  = 0
    	stopped = 0x7F
    )
    
    func (w WaitStatus) Exited() bool { return w&mask == exited }
    
    func (w WaitStatus) ExitStatus() int {
    	if w&mask != exited {
    		return -1
    	}
    	return int(w >> shift)
    }
    
    func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != 0 }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 31.1K bytes
    - Viewed (0)
Back to top