summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-06-07 13:14:44 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-06-07 13:14:44 +0000
commit93277c0ce83edfc9e5c7c1b4c9c0747bd6ad2cac (patch)
tree678169843106a79cfba433867a28bee92bf379b1
parent8939ba947b65b018b80ecab3fe1366287d07d1d7 (diff)
parentba5c3fe9c7fca842d972e373ee61c7a07bd44bb4 (diff)
downloadperl-93277c0ce83edfc9e5c7c1b4c9c0747bd6ad2cac.tar.gz
Integrate perlio:
[ 17053] Don't discard read data on flush if seek fails. p4raw-link: @17053 on //depot/perlio: ba5c3fe9c7fca842d972e373ee61c7a07bd44bb4 p4raw-id: //depot/perl@17056
-rw-r--r--perlio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/perlio.c b/perlio.c
index 96aa0c9270..e1cbbdc0d1 100644
--- a/perlio.c
+++ b/perlio.c
@@ -3123,6 +3123,9 @@ PerlIOBuf_flush(pTHX_ PerlIO *f)
/* Reload n as some layers may pop themselves on seek */
b->posn = PerlIO_tell(n = PerlIONext(f));
}
+ else {
+ return code;
+ }
}
}
b->ptr = b->end = b->buf;