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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user