summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index e3bc73a2dd..78333d1d22 100644
--- a/io.c
+++ b/io.c
@@ -437,7 +437,9 @@ io_fwrite(str, fptr)
wsplit_p(fptr)) {
l = PIPE_BUF;
}
+ TRAP_BEG;
r = write(fileno(f), RSTRING(str)->ptr+offset, l);
+ TRAP_END;
if (r == n) return len;
if (0 <= r) {
offset += r;