summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/server.c b/src/util/server.c
index 8f5b4414..4b65da10 100644
--- a/src/util/server.c
+++ b/src/util/server.c
@@ -120,7 +120,7 @@ int pidfile(const char *path, const char *name)
pid_str[pidlen] = '\0';
-
+ len = 0;
while ((ret = read(fd, pid_str + len, pidlen - len)) != 0) {
if (ret == -1) {
if (errno == EINTR || errno == EAGAIN) {