Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8358e0ff
authored
2013-06-25 07:08:35 -0700
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #83 from shxsun/master
In go version 1.0.3 will call build error
2 parents
d5fc0a4b
1687ec85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
reload.go
reload.go
View file @
8358e0f
...
...
@@ -137,16 +137,15 @@ func GetInitListner(tcpaddr *net.TCPAddr) (l net.Listener, err error) {
countStr
:=
os
.
Getenv
(
FDKey
)
if
countStr
==
""
{
return
net
.
ListenTCP
(
"tcp"
,
tcpaddr
)
}
else
{
count
,
err
:=
strconv
.
Atoi
(
countStr
)
if
err
!=
nil
{
return
nil
,
err
}
f
:=
os
.
NewFile
(
uintptr
(
count
),
"listen socket"
)
l
,
err
=
net
.
FileListener
(
f
)
if
err
!=
nil
{
return
nil
,
err
}
return
l
,
nil
}
count
,
err
:=
strconv
.
Atoi
(
countStr
)
if
err
!=
nil
{
return
nil
,
err
}
f
:=
os
.
NewFile
(
uintptr
(
count
),
"listen socket"
)
l
,
err
=
net
.
FileListener
(
f
)
if
err
!=
nil
{
return
nil
,
err
}
return
l
,
nil
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment