summaryrefslogtreecommitdiff
path: root/src/scripting.c
diff options
context:
space:
mode:
authorOran Agra <oran@redislabs.com>2021-10-24 16:52:44 +0300
committerGitHub <noreply@github.com>2021-10-24 16:52:44 +0300
commit6b297cd64627a383ccb8d2d5a2ad736118a014ed (patch)
treee36bf8f431e60341b34b9cf680e51af876d5cea8 /src/scripting.c
parent48e4d7709961f7e1ca94dea86ff3b57c4b9710ec (diff)
downloadredis-6b297cd64627a383ccb8d2d5a2ad736118a014ed.tar.gz
Improve errno reporting on fork and fopen rdbLoad failures (#9649)
I moved a bunch of stats in redisFork to be executed only on successful fork, since they seem wrong to be done when it failed. I guess when fork fails it does that immediately, no latency spike.
Diffstat (limited to 'src/scripting.c')
-rw-r--r--src/scripting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripting.c b/src/scripting.c
index 374ebaf91..85504bdb0 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -2164,7 +2164,7 @@ int ldbStartSession(client *c) {
if (ldb.forked) {
pid_t cp = redisFork(CHILD_TYPE_LDB);
if (cp == -1) {
- addReplyError(c,"Fork() failed: can't run EVAL in debugging mode.");
+ addReplyErrorFormat(c,"Fork() failed: can't run EVAL in debugging mode: %s", strerror(errno));
return 0;
} else if (cp == 0) {
/* Child. Let's ignore important signals handled by the parent. */