2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

Clean-up compiler warnings about ignoring return values

Some systems complain when certain functions' return values are not
checked.  This commit fixes those warnings.

Creating ignore() function suggested by Ben Pfaff.
This commit is contained in:
Justin Pettit
2009-12-14 23:08:10 -08:00
parent c100e025e2
commit 18b9283b98
9 changed files with 18 additions and 10 deletions

View File

@@ -232,11 +232,11 @@ daemonize(void)
/* Child process. */
close(fds[0]);
make_pidfile();
write(fds[1], &c, 1);
ignore(write(fds[1], &c, 1));
close(fds[1]);
setsid();
if (chdir_) {
chdir("/");
ignore(chdir("/"));
}
time_postfork();
lockfile_postfork();