Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 430 for psignal (0.25 sec)

  1. 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)
  2. build/pause/windows/pause.c

    #define VERSION HEAD
    #endif
    
    BOOL WINAPI CtrlHandler(DWORD fdwCtrlType)
    {
    	switch (fdwCtrlType)
    	{
    	case CTRL_C_EVENT:
    		fprintf(stderr, "Shutting down, got signal\n");
    		exit(0);
    
    	case CTRL_BREAK_EVENT:
    		fprintf(stderr, "Shutting down, got signal\n");
    		exit(0);
    
    	default:
    		return FALSE;
    	}
    }
    
    int main(int argc, char **argv)
    {
    	int i;
    	for (i = 1; i < argc; ++i)
    	{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 13:09:17 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. 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)
  4. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/locklistener/DefaultFileLockContentionHandlerTest.groovy

            poll {
                assert action1.get() && action2.get()
            }
        }
    
        def "client receives signal when lock is released"() {
            def signaled = new AtomicBoolean()
    
            when:
            int port = handler.reservePort()
            handler.start(10) { signal ->
                signal.trigger()
            }
    
            client.reservePort()
            client.start(11) {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. src/runtime/defs_dragonfly.go

    package runtime
    
    /*
    #include <sys/user.h>
    #include <sys/time.h>
    #include <sys/event.h>
    #include <sys/mman.h>
    #include <sys/ucontext.h>
    #include <sys/rtprio.h>
    #include <sys/signal.h>
    #include <sys/unistd.h>
    #include <errno.h>
    #include <signal.h>
    */
    import "C"
    
    const (
    	EINTR     = C.EINTR
    	EFAULT    = C.EFAULT
    	EBUSY     = C.EBUSY
    	EAGAIN    = C.EAGAIN
    	ETIMEDOUT = C.ETIMEDOUT
    
    	O_WRONLY   = C.O_WRONLY
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/runtime/asm_arm64.s

    //
    // This function communicates back to the debugger by setting R20 and
    // invoking BRK to raise a breakpoint signal. Note that the signal PC of
    // the signal triggered by the BRK instruction is the PC where the signal
    // is trapped, not the next PC, so to resume execution, the debugger needs
    // to set the signal PC to PC+4. See the comments in the implementation for
    // the protocol the debugger is expected to follow. InjectDebugCall in the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  7. src/cmd/go/scriptcmds_test.go

    	"strings"
    	"sync"
    	"time"
    )
    
    func scriptCommands(interrupt os.Signal, waitDelay time.Duration) map[string]script.Cmd {
    	cmds := scripttest.DefaultCmds()
    
    	// Customize the "exec" interrupt signal and grace period.
    	var cancel func(cmd *exec.Cmd) error
    	if interrupt != nil {
    		cancel = func(cmd *exec.Cmd) error {
    			return cmd.Process.Signal(interrupt)
    		}
    	}
    
    	cmdExec := script.Exec(cancel, waitDelay)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 18:33:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. pkg/kubelet/eviction/eviction_manager.go

    	// rank the pods for eviction
    	rank, ok := m.signalToRankFunc[thresholdToReclaim.Signal]
    	if !ok {
    		klog.ErrorS(nil, "Eviction manager: no ranking function for signal", "threshold", thresholdToReclaim.Signal)
    		return nil, nil
    	}
    
    	// the only candidates viable for eviction are those pods that had anything running.
    	if len(activePods) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 18:55:56 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  9. src/syscall/syscall_solaris.go

    func (w WaitStatus) Signal() Signal {
    	sig := Signal(w & mask)
    	if sig == stopped || sig == 0 {
    		return -1
    	}
    	return sig
    }
    
    func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 }
    
    func (w WaitStatus) Stopped() bool { return w&mask == stopped && Signal(w>>shift) != SIGSTOP }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/LockOnDemandCrossProcessCacheAccess.java

            @Override
            public void accept(FileLockReleasedSignal signal) {
                stateLock.lock();
                try {
                    if (lockCount == 0) {
                        LOGGER.debug("Lock on {} requested by another process - releasing lock.", cacheDisplayName);
                        releaseLockIfHeld();
                        signal.trigger();
                    } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top