mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-28 22:08:01 +00:00
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:
parent
921507ac00
commit
aa52bef622
@ -1366,7 +1366,7 @@ int main(int argc, char **argv)
|
|||||||
if (pidfd >= 0) {
|
if (pidfd >= 0) {
|
||||||
char pidstr[100];
|
char pidstr[100];
|
||||||
snprintf(pidstr, sizeof(pidstr), "%d\n", ret);
|
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 */
|
relative_pid++; /* each child will get a different one */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user