Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix log printing always shows the role as child under daemonize
In valkey-io#1282, we init server.pid earlier to keep log message role consistent, but we forgot to consider daemonize. In daemonize mode, we will always print the child role. We need to reset server.pid after daemonize(), otherwise the log printing role will always be the child. Signed-off-by: Binbin <binloveplay1314@qq.com>
- Loading branch information