Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for fd (0.02 sec)

  1. src/os/exec/exec_test.go

    	os.Setenv("GODEBUG", godebug)
    
    	if os.Getenv("GO_EXEC_TEST_PID") != "" {
    		return
    	}
    	if runtime.GOOS == "windows" {
    		return
    	}
    	for fd := uintptr(3); fd <= 100; fd++ {
    		if poll.IsPollDescriptor(fd) {
    			continue
    		}
    
    		if fdtest.Exists(fd) {
    			haveUnexpectedFDs = true
    			return
    		}
    	}
    }
    
    // TestMain allows the test binary to impersonate many other binaries,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  2. cmd/metacache-set.go

    			fdMu.Lock()
    			defer fdMu.Unlock()
    			if len(fds) == 0 {
    				return nil
    			}
    			fdsCopy := fds
    			for _, fd := range fdsCopy {
    				// Grab a fallback disk
    				fds = fds[1:]
    				if fd != nil && fd.IsOnline() {
    					return fd
    				}
    			}
    		}
    		// Either no more disks for fallback or
    		// not a storage error.
    		return nil
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 22:18:44 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  3. src/os/exec/exec.go

    		_, err := io.Copy(w, pr)
    		pr.Close() // in case io.Copy stopped due to write error
    		return err
    	})
    	return pw, nil
    }
    
    func closeDescriptors(closers []io.Closer) {
    	for _, fd := range closers {
    		fd.Close()
    	}
    }
    
    // Run starts the specified command and waits for it to complete.
    //
    // The returned error is nil if the command runs, has no problems
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 41.4K bytes
    - Viewed (0)
Back to top