Don't care about the result from write() in SIGSEGV handler

This commit is contained in:
Love Hornquist Astrand
2009-09-19 14:34:58 -07:00
parent 4795494a78
commit fb63b6d6f0

View File

@@ -66,9 +66,9 @@ segv_handler(int sig)
fd = open("/dev/stdout", O_WRONLY, 0600); fd = open("/dev/stdout", O_WRONLY, 0600);
if (fd >= 0) { if (fd >= 0) {
write(fd, msg, sizeof(msg) - 1); (void)write(fd, msg, sizeof(msg) - 1);
write(fd, testname, strlen(testname)); (void)write(fd, testname, strlen(testname));
write(fd, "\n", 1); (void)write(fd, "\n", 1);
close(fd); close(fd);
} }
_exit(1); _exit(1);