Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 113 for signalM (0.16 sec)

  1. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultFileLockManagerContentionTest.groovy

            when:
            def lock2 = createLock(lockMode, file, manager2)
    
            then:
            lock2
            1 * action.accept(_) >> { FileLockReleasedSignal signal ->
                lock.close()
                signal.trigger()
            }
    
            where:
            lockMode << [Exclusive, Shared]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/testing/internal/testdeps/deps.go

    	if err == ctx.Err() {
    		return nil
    	}
    	return err
    }
    
    func (TestDeps) RunFuzzWorker(fn func(fuzz.CorpusEntry) error) error {
    	// Worker processes may or may not receive a signal when the user presses ^C
    	// On POSIX operating systems, a signal sent to a process group is delivered
    	// to all processes in that group. This is not the case on Windows.
    	// If the worker is interrupted, return quickly and without error.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/cgo/internal/testsanitizers/testdata/tsan15.go

    // license that can be found in the LICENSE file.
    
    package main
    
    // Test case for issue 66427.
    // Running under TSAN, this fails with "signal handler
    // spoils errno".
    
    /*
    #include <pthread.h>
    #include <signal.h>
    #include <stdlib.h>
    
    void go_callback();
    
    static void *thr(void *arg) {
    	int i;
    	for (i = 0; i < 10; i++)
    		go_callback();
    	return 0;
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 21:14:49 UTC 2024
    - 968 bytes
    - Viewed (0)
  5. src/cmd/go/internal/tool/tool.go

    		Stdin:  os.Stdin,
    		Stdout: os.Stdout,
    		Stderr: os.Stderr,
    	}
    	err = toolCmd.Start()
    	if err == nil {
    		c := make(chan os.Signal, 100)
    		signal.Notify(c)
    		go func() {
    			for sig := range c {
    				toolCmd.Process.Signal(sig)
    			}
    		}()
    		err = toolCmd.Wait()
    		signal.Stop(c)
    		close(c)
    	}
    	if err != nil {
    		// Only print about the exit status if the command
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 18:02:11 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. samples/jwt-server/src/main.go

    	if s.serverCertificate != "" && s.serverPrivateKey != "" {
    		go s.runHTTPS(fmt.Sprintf(":%s", *httpsPort))
    	}
    	defer s.stop()
    
    	// Wait for the process to be shutdown.
    	sigs := make(chan os.Signal, 1)
    	signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
    	<-sigs
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 16 23:56:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. src/syscall/syscall_plan9.go

    }
    
    func (e ErrorString) Timeout() bool {
    	return e == EBUSY || e == ETIMEDOUT
    }
    
    var emptystring string
    
    // A Note is a string describing a process note.
    // It implements the os.Signal interface.
    type Note string
    
    func (n Note) Signal() {}
    
    func (n Note) String() string {
    	return string(n)
    }
    
    var (
    	Stdin  = 0
    	Stdout = 1
    	Stderr = 2
    )
    
    // For testing: clients can set this flag to force
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ExpectationState.java

        private String unexpectedMethod;
        private String unexpectedPath;
    
        public boolean isFailed() {
            return failure != FailureType.None;
        }
    
        /**
         * Signals that an unexpected request was received.
         *
         * @return A response to return to the client
         */
        public ResponseProducer unexpectedRequest(String requestMethod, String path, String context) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top