Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ec7bbadc
"vscode:/vscode.git/clone" did not exist on "cc8a0f898b0aa881064da23dba23f183b13e3195"
Commit
ec7bbadc
authored
Jul 22, 2011
by
antirez
Browse files
Close the listening sockets. Apparently this allows faster restarts.
parent
063923de
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
ec7bbadc
...
...
@@ -1118,6 +1118,10 @@ int prepareForShutdown() {
redisLog
(
REDIS_NOTICE
,
"Removing the pid file."
);
unlink
(
server
.
pidfile
);
}
/* Close the listening sockets. Apparently this allows faster restarts. */
if
(
server
.
ipfd
!=
-
1
)
close
(
server
.
ipfd
);
if
(
server
.
sofd
!=
-
1
)
close
(
server
.
sofd
);
redisLog
(
REDIS_WARNING
,
"Redis is now ready to exit, bye bye..."
);
return
REDIS_OK
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment