mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Tools: hv: check return value of daemon to fix compiler warning.
@ 2013-08-01 12:43 Olaf Hering
  2013-08-01 14:34 ` KY Srinivasan
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2013-08-01 12:43 UTC (permalink / raw)
  To: kys, gregkh; +Cc: linux-kernel, Olaf Hering

hv_kvp_daemon.c: In function 'main':
hv_kvp_daemon.c:1441:8: warning: ignoring return value of 'daemon', declared with attribute warn_unused_result [-Wunused-result]

Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
 tools/hv/hv_kvp_daemon.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c
index 657c1d2..418ac55 100644
--- a/tools/hv/hv_kvp_daemon.c
+++ b/tools/hv/hv_kvp_daemon.c
@@ -1439,7 +1439,8 @@ int main(void)
 	char *kvp_recv_buffer;
 	size_t kvp_recv_buffer_len;
 
-	daemon(1, 0);
+	if (daemon(1, 0))
+		return 1;
 	openlog("KVP", 0, LOG_USER);
 	syslog(LOG_INFO, "KVP starting; pid is:%d", getpid());
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-01 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-01 12:43 [PATCH] Tools: hv: check return value of daemon to fix compiler warning Olaf Hering
2013-08-01 14:34 ` KY Srinivasan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®