Commit 27314d32 authored by Peter Eisentraut's avatar Peter Eisentraut

Suppress -Wunused-result warning about write()

This is related to aa90e148, but this
code is only used under -DLINUX_OOM_ADJ, so it was apparently
overlooked then.
parent a8b92b60
......@@ -87,9 +87,11 @@ fork_process(void)
if (fd >= 0)
{
char buf[16];
int rc;
snprintf(buf, sizeof(buf), "%d\n", LINUX_OOM_ADJ);
(void) write(fd, buf, strlen(buf));
rc = write(fd, buf, strlen(buf));
(void) rc;
close(fd);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment