[vte] [stream] Fix new_page implementation
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vte] [stream] Fix new_page implementation
- Date: Wed, 16 Sep 2009 02:23:01 +0000 (UTC)
commit ea7ee1b1cbfe58faab7903cf354b377190dfb144
Author: Behdad Esfahbod <behdad behdad org>
Date: Mon Sep 14 15:24:57 2009 -0400
[stream] Fix new_page implementation
src/vtestream-file.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/vtestream-file.h b/src/vtestream-file.h
index e2a407d..78a0234 100644
--- a/src/vtestream-file.h
+++ b/src/vtestream-file.h
@@ -31,7 +31,6 @@ _xread (int fd, char *data, gsize len)
while (len) {
ret = read (fd, data, len);
- g_message ("%d %d", len, ret);
if (G_UNLIKELY (ret == (gsize) -1)) {
if (errno == EINTR)
continue;
@@ -225,6 +224,8 @@ _vte_file_stream_new_page (VteStream *astream)
VteFileStream *stream = (VteFileStream *) astream;
stream->offset[1] = stream->offset[0];
+ if (stream->fd[0])
+ stream->offset[0] += lseek (stream->fd[0], 0, SEEK_END);
_vte_file_stream_swap_fds (stream);
if (stream->fd[0])
_xtruncate (stream->fd[0], 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]