use STDERR_FILENO instead of 2

This commit is contained in:
Love Hornquist Astrand
2013-09-27 08:24:51 -07:00
parent f381c62405
commit 1b39c562d5

View File

@@ -861,7 +861,7 @@ handle_siginfo(int sig)
iov[1].iov_base = "\n";
iov[1].iov_len = 1;
writev(2, iov, sizeof(iov)/sizeof(iov[0]));
writev(STDERR_FILENO, iov, sizeof(iov)/sizeof(iov[0]));
}
#endif