BUILD: shut a gcc warning introduced by commit 269ab31

Usual warning on unchecked write() on which no operation is possible.
This commit is contained in:
Willy Tarreau 2012-09-07 22:18:59 +02:00
parent 921507ac00
commit aa52bef622

View File

@ -1366,7 +1366,7 @@ int main(int argc, char **argv)
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 */
}