git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up compiler warnings about ignoring return values
[sliver-openvswitch.git]
/
lib
/
daemon.c
diff --git
a/lib/daemon.c
b/lib/daemon.c
index
0dcc66f
..
50cc335
100644
(file)
--- a/
lib/daemon.c
+++ b/
lib/daemon.c
@@
-232,11
+232,11
@@
daemonize(void)
/* Child process. */
close(fds[0]);
make_pidfile();
/* Child process. */
close(fds[0]);
make_pidfile();
-
write(fds[1], &c, 1
);
+
ignore(write(fds[1], &c, 1)
);
close(fds[1]);
setsid();
if (chdir_) {
close(fds[1]);
setsid();
if (chdir_) {
-
chdir("/"
);
+
ignore(chdir("/")
);
}
time_postfork();
lockfile_postfork();
}
time_postfork();
lockfile_postfork();