mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Avoid close before logging to preserve errno (#8703)
This commit is contained in:
parent
7d749d810b
commit
374401d786
@ -2320,8 +2320,8 @@ void sentinelFlushConfig(void) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
werr:
|
werr:
|
||||||
if (fd != -1) close(fd);
|
|
||||||
serverLog(LL_WARNING,"WARNING: Sentinel was not able to save the new configuration on disk!!!: %s", strerror(errno));
|
serverLog(LL_WARNING,"WARNING: Sentinel was not able to save the new configuration on disk!!!: %s", strerror(errno));
|
||||||
|
if (fd != -1) close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ====================== hiredis connection handling ======================= */
|
/* ====================== hiredis connection handling ======================= */
|
||||||
|
Loading…
Reference in New Issue
Block a user