Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AcceptFunc (0.07 sec)

  1. src/internal/poll/sock_cloexec_solaris.go

    	// because we have put fd.sysfd into non-blocking mode.
    	// However, a call to the File method will put it back into
    	// blocking mode. We can't take that risk, so no use of ForkLock here.
    	ns, sa, err := AcceptFunc(s)
    	if err == nil {
    		syscall.CloseOnExec(ns)
    	}
    	if err != nil {
    		return -1, nil, "accept", err
    	}
    	if err = syscall.SetNonblock(ns, true); err != nil {
    		CloseFunc(ns)
    		return -1, nil, "setnonblock", err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top