From fb63b6d6f090ce461925d6769a5c3adaf47bc102 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sat, 19 Sep 2009 14:34:58 -0700 Subject: [PATCH] Don't care about the result from write() in SIGSEGV handler --- lib/roken/test-mem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/roken/test-mem.c b/lib/roken/test-mem.c index e727ce045..ef2a5ed77 100644 --- a/lib/roken/test-mem.c +++ b/lib/roken/test-mem.c @@ -66,9 +66,9 @@ segv_handler(int sig) fd = open("/dev/stdout", O_WRONLY, 0600); if (fd >= 0) { - write(fd, msg, sizeof(msg) - 1); - write(fd, testname, strlen(testname)); - write(fd, "\n", 1); + (void)write(fd, msg, sizeof(msg) - 1); + (void)write(fd, testname, strlen(testname)); + (void)write(fd, "\n", 1); close(fd); } _exit(1);