Throw away result of write(); it's not important

This commit is contained in:
Thomas Thurman 2010-01-05 15:44:01 -05:00 committed by Owen W. Taylor
parent b1c465eab0
commit a321f4c842

View File

@ -453,7 +453,9 @@ sigterm_handler (int signum)
{
if (sigterm_pipe_fds[1] >= 0)
{
write (sigterm_pipe_fds[1], "", 1);
int dummy;
dummy = write (sigterm_pipe_fds[1], "", 1);
close (sigterm_pipe_fds[1]);
sigterm_pipe_fds[1] = -1;
}