Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
7448baf9
Commit
7448baf9
authored
Jun 26, 2002
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/io.c
View file @
7448baf9
...
...
@@ -649,14 +649,22 @@ do_write_callback(struct io_callback *s UNUSED,
break
;
case
EPIPE
:
debug
(
"io.c: Broken pipe.
\n
"
);
/* Fall through */
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");
#endif
werror
(
"io.c: write failed, %z
\n
"
,
STRERROR
(
errno
));
EXCEPTION_RAISE
(
fd
->
e
,
make_io_exception
(
EXC_IO_WRITE
,
fd
,
errno
,
NULL
));
make_io_exception
(
EXC_IO_WRITE
,
fd
,
errno
,
NULL
));
close_fd
(
fd
);
break
;
}
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment