diff --git a/src/server.c b/src/server.c index a1f8eca78..d5b3ea690 100644 --- a/src/server.c +++ b/src/server.c @@ -4248,10 +4248,13 @@ int finishShutdown(void) { /* Close the listening sockets. Apparently this allows faster restarts. */ closeListeningSockets(1); +#if !defined(__sun) /* Unlock the cluster config file before shutdown */ if (server.cluster_enabled && server.cluster_config_file_lock_fd != -1) { flock(server.cluster_config_file_lock_fd, LOCK_UN|LOCK_NB); } +#endif /* __sun */ + serverLog(LL_WARNING,"%s is now ready to exit, bye bye...", server.sentinel_mode ? "Sentinel" : "Redis");