Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for signalfd (0.17 sec)

  1. src/os/exec_posix.go

    			res = "exit status " + itoa.Uitox(uint(code))
    		} else { // unix systems use small decimal integers
    			res = "exit status " + itoa.Itoa(code) // unix
    		}
    	case status.Signaled():
    		res = "signal: " + status.Signal().String()
    	case status.Stopped():
    		res = "stop signal: " + status.StopSignal().String()
    		if status.StopSignal() == syscall.SIGTRAP && status.TrapCause() != 0 {
    			res += " (trap " + itoa.Itoa(status.TrapCause()) + ")"
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. src/os/exec_test.go

    	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
    	}
    }
    
    func TestProcessReleaseTwice(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. src/runtime/cpuprof.go

    	log  *profBuf // profile events written here
    
    	// extra holds extra stacks accumulated in addNonGo
    	// corresponding to profiling signals arriving on
    	// non-Go-created threads. Those stacks are written
    	// to log the next time a normal Go thread gets the
    	// signal handler.
    	// Assuming the stacks are 2 words each (we don't get
    	// a full traceback from those threads), plus one word
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. src/cmd/test2json/main.go

    )
    
    func usage() {
    	fmt.Fprintf(os.Stderr, "usage: go tool test2json [-p pkg] [-t] [./pkg.test -test.v]\n")
    	os.Exit(2)
    }
    
    // ignoreSignals ignore the interrupt signals.
    func ignoreSignals() {
    	signal.Ignore(signalsToIgnore...)
    }
    
    func main() {
    	telemetry.Start()
    
    	flag.Usage = usage
    	flag.Parse()
    	telemetry.Inc("test2json/invocations")
    	telemetry.CountFlags("test2json/flag:", *flag.CommandLine)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. staging/src/k8s.io/api/testdata/HEAD/core.v1.PodStatusResult.yaml

          terminated:
            containerID: containerIDValue
            exitCode: 1
            finishedAt: "2006-01-01T01:01:01Z"
            message: messageValue
            reason: reasonValue
            signal: 2
            startedAt: "2005-01-01T01:01:01Z"
          waiting:
            message: messageValue
            reason: reasonValue
        name: nameValue
        ready: true
        resources:
          claims:
          - name: nameValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/HEAD/core.v1.PodStatusResult.json

                "message": "messageValue"
              },
              "running": {
                "startedAt": "2001-01-01T01:01:01Z"
              },
              "terminated": {
                "exitCode": 1,
                "signal": 2,
                "reason": "reasonValue",
                "message": "messageValue",
                "startedAt": "2005-01-01T01:01:01Z",
                "finishedAt": "2006-01-01T01:01:01Z",
                "containerID": "containerIDValue"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. src/sync/cond.go

    	runtime_notifyListWait(&c.notify, t)
    	c.L.Lock()
    }
    
    // Signal wakes one goroutine waiting on c, if there is any.
    //
    // It is allowed but not required for the caller to hold c.L
    // during the call.
    //
    // Signal() does not affect goroutine scheduling priority; if other goroutines
    // are attempting to lock c.L, they may be awoken before a "waiting" goroutine.
    func (c *Cond) Signal() {
    	c.checker.check()
    	runtime_notifyListNotifyOne(&c.notify)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. src/iter/iter.go

    // or after calling stop. These calls will continue
    // to return the zero V and false.
    //
    // Stop ends the iteration. It must be called when the caller is
    // no longer interested in next values and next has not yet
    // signaled that the sequence is over (with a false boolean return).
    // It is valid to call stop multiple times and when next has
    // already returned false.
    //
    // It is an error to call next or stop from multiple goroutines
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top