Closed enjoy-binbin closed 1 week ago
Attention: Patch coverage is 0%
with 3 lines
in your changes missing coverage. Please review.
Project coverage is 70.69%. Comparing base (
2df56d8
) to head (0a98333
). Report is 1 commits behind head on unstable.
Files with missing lines | Patch % | Lines |
---|---|---|
src/server.c | 0.00% | 3 Missing :warning: |
In #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. It also causes a incorrect server.pid value, affecting the concatenation of some pid names.