summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--io.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b3c36758f3..24fcb929c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Sep 19 03:02:08 2005 Tanaka Akira <akr@m17n.org>
+
+ * io.c (io_fwrite): wrap the write system call by TRAP_BEG/TRAP_END to
+ enable signals when writing to a pipe which is full.
+
Sun Sep 18 02:10:47 2005 why the lucky stiff <why@ruby-lang.org>
* lib/yaml/rubytypes.rb: remove comments that are bungling up
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;