Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 476 for npipe (0.1 sec)

  1. src/runtime/debug/example_monitor_test.go

    	cmd := exec.Command(exe, "-test.run=ExampleSetCrashOutput_monitor")
    	cmd.Env = append(os.Environ(), monitorVar+"=1")
    	cmd.Stderr = os.Stderr
    	cmd.Stdout = os.Stderr
    	pipe, err := cmd.StdinPipe()
    	if err != nil {
    		log.Fatalf("StdinPipe: %v", err)
    	}
    	debug.SetCrashOutput(pipe.(*os.File), debug.CrashOptions{}) // (this conversion is safe)
    	if err := cmd.Start(); err != nil {
    		log.Fatalf("can't start monitor: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/internal/crashmonitor/monitor.go

    // exclusive use of a writable pipe connected to the child process's stdin.
    func Parent(pipe *os.File) {
    	writeSentinel(pipe)
    	// Ensure that we get pc=0x%x values in the traceback.
    	debug.SetTraceback("system")
    	setCrashOutput(pipe)
    }
    
    // Child runs the part of the crashmonitor that runs in the child process.
    // It expects its stdin to be connected via a pipe to the parent which has
    // run Parent.
    func Child() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. src/net/pipe_test.go

    )
    
    func TestPipe(t *testing.T) {
    	nettest.TestConn(t, func() (c1, c2 net.Conn, stop func(), err error) {
    		c1, c2 = net.Pipe()
    		stop = func() {
    			c1.Close()
    			c2.Close()
    		}
    		return
    	})
    }
    
    func TestPipeCloseError(t *testing.T) {
    	c1, c2 := net.Pipe()
    	c1.Close()
    
    	if _, err := c1.Read(nil); err != io.ErrClosedPipe {
    		t.Errorf("c1.Read() = %v, want io.ErrClosedPipe", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 20:28:54 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprog/crashdump.go

    	// Wait for all the goroutines to start executing.
    	for _, c := range chans {
    		<-c
    	}
    
    	// Tell our parent that all the goroutines are executing.
    	if _, err := os.NewFile(3, "pipe").WriteString("x"); err != nil {
    		fmt.Fprintf(os.Stderr, "write to pipe failed: %v\n", err)
    		os.Exit(2)
    	}
    
    	select {}
    }
    
    func crashDumpsAllThreadsLoop(i int, c chan bool) {
    	close(c)
    	for {
    		for j := 0; j < 0x7fffffff; j++ {
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 22 00:34:25 UTC 2021
    - 917 bytes
    - Viewed (0)
  5. src/text/template/exec.go

    	val, _ := indirect(s.evalPipeline(dot, r.Pipe))
    	// mark top of stack before any variables in the body are pushed.
    	mark := s.mark()
    	oneIteration := func(index, elem reflect.Value) {
    		if len(r.Pipe.Decl) > 0 {
    			if r.Pipe.IsAssign {
    				// With two variables, index comes first.
    				// With one, we use the element.
    				if len(r.Pipe.Decl) > 1 {
    					s.setVar(r.Pipe.Decl[0].Ident[0], index)
    				} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/DosError.java

            "The pipe has been ended.", "The filename, directory name, or volume label syntax is incorrect.", "The directory is not empty.",
            "Cannot create a file when that file already exists.", "All pipe instances are busy.", "The pipe is being closed.",
            "No process is on the other end of the pipe.", "More data is available.", "This user account has expired.",
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 4.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/DosError.java

            "The pipe has been ended.",
            "The filename, directory name, or volume label syntax is incorrect.",
            "The directory is not empty.",
            "Cannot create a file when that file already exists.",
            "All pipe instances are busy.",
            "The pipe is being closed.",
            "No process is on the other end of the pipe.",
            "More data is available.",
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 4.5K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopySpecIntegrationSpec.groovy

            """
    
            when:
            runAndFail "copy"
            then:
            expectUnreadableCopyDestinationFailure()
            failureHasCause("java.io.IOException: Cannot snapshot ${pipe}: not a regular file")
    
            cleanup:
            pipe.delete()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:45:30 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        source2!!.close()
        assertThat(relay.isClosed).isTrue()
        assertFile(Relay.PREFIX_DIRTY, -1L, -1, null, null)
      }
    
      @Test
      fun racingReaders() {
        val pipe = Pipe(1024)
        val sink = pipe.sink.buffer()
        val relay = edit(file, pipe.source, metadata, 5)
        val future1 = executor.submit(sourceReader(relay.newSource()))
        val future2 = executor.submit(sourceReader(relay.newSource()))
        Thread.sleep(500)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_timeout_stdin.txt

    	# the kernel closes its stdin pipe to to the orphaned subprocess.
    	# At that point, we expect the subprocess to print 'stdin closed'
    	# and periodically log to stderr until the WaitDelay expires.
    	#
    	# Once the WaitDelay expires, the copying goroutine for 'go test' stops and
    	# closes the read side of the stderr pipe, and the subprocess will eventually
    	# exit due to a failed write to that pipe.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 20:23:27 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top