Commit 7448baf9 authored by Niels Möller's avatar Niels Möller
Browse files

(do_write_callback): Added some code to ignore write

errors for the final , but #if:ed out the code again.

Rev: src/io.c:1.168
parent ad5881e8
...@@ -649,14 +649,22 @@ do_write_callback(struct io_callback *s UNUSED, ...@@ -649,14 +649,22 @@ do_write_callback(struct io_callback *s UNUSED,
break; break;
case EPIPE: case EPIPE:
debug("io.c: Broken pipe.\n"); debug("io.c: Broken pipe.\n");
/* Fall through */ /* Fall through */
default: default:
#if 0
/* Don't complain if it was writing the final ^D
* character that failed. */
if ( (fd->type == IO_PTY_CLOSED)
&& (fd->write_buffer->length == 1) )
debug("io.c: ignoring write error, on the final ^D character\n");
werror("io.c: write failed, %z\n", STRERROR(errno)); werror("io.c: write failed, %z\n", STRERROR(errno));
make_io_exception(EXC_IO_WRITE, fd, errno, NULL)); make_io_exception(EXC_IO_WRITE,
fd, errno, NULL));
close_fd(fd); close_fd(fd);
break; break;
} }
else else
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment