BUILD: shut a gcc warning introduced by commit 269ab31
Usual warning on unchecked write() on which no operation is possible.
diff --git a/src/haproxy.c b/src/haproxy.c
index def0f3f..f5840d2 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -1366,7 +1366,7 @@
if (pidfd >= 0) {
char pidstr[100];
snprintf(pidstr, sizeof(pidstr), "%d\n", ret);
- write(pidfd, pidstr, strlen(pidstr));
+ if (write(pidfd, pidstr, strlen(pidstr)) < 0) /* shut gcc warning */;
}
relative_pid++; /* each child will get a different one */
}