1687ec85 by sun shengxiang

fix build problem

1 parent 86ddfe53
Showing 1 changed file with 10 additions and 11 deletions
...@@ -137,16 +137,15 @@ func GetInitListner(tcpaddr *net.TCPAddr) (l net.Listener, err error) { ...@@ -137,16 +137,15 @@ func GetInitListner(tcpaddr *net.TCPAddr) (l net.Listener, err error) {
137 countStr := os.Getenv(FDKey) 137 countStr := os.Getenv(FDKey)
138 if countStr == "" { 138 if countStr == "" {
139 return net.ListenTCP("tcp", tcpaddr) 139 return net.ListenTCP("tcp", tcpaddr)
140 } else {
141 count, err := strconv.Atoi(countStr)
142 if err != nil {
143 return nil, err
144 }
145 f := os.NewFile(uintptr(count), "listen socket")
146 l, err = net.FileListener(f)
147 if err != nil {
148 return nil, err
149 }
150 return l, nil
151 } 140 }
141 count, err := strconv.Atoi(countStr)
142 if err != nil {
143 return nil, err
144 }
145 f := os.NewFile(uintptr(count), "listen socket")
146 l, err = net.FileListener(f)
147 if err != nil {
148 return nil, err
149 }
150 return l, nil
152 } 151 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!