diff options
author | Justin Pettit <jpettit@nicira.com> | 2009-12-14 23:08:10 -0800 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2009-12-15 00:14:32 -0800 |
commit | 18b9283b986ab65f64385981f4ba8e237f658c0d (patch) | |
tree | d3663370aa75177738ac493a69854e452a89cfc4 /lib/daemon.c | |
parent | c100e025e2ca1bc330512e003bac8359ee65318d (diff) |
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.
Diffstat (limited to 'lib/daemon.c')
-rw-r--r-- | lib/daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/daemon.c b/lib/daemon.c index 0dcc66ff..50cc3352 100644 --- a/lib/daemon.c +++ b/lib/daemon.c @@ -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(); |