diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-02-05 08:12:07 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-02-05 08:12:07 +0800 |
commit | f735b43e8e3622ff58b3e03d573d671755606966 (patch) | |
tree | 09a64fd4de5c03ca6079a5f15a764d1e5900c243 /camel/camel-stream-fs.c | |
parent | 66a509fb9d9a452b6f5f9f74e0c7209b221e8c54 (diff) | |
download | gsoc2013-evolution-f735b43e8e3622ff58b3e03d573d671755606966.tar.gz gsoc2013-evolution-f735b43e8e3622ff58b3e03d573d671755606966.tar.zst gsoc2013-evolution-f735b43e8e3622ff58b3e03d573d671755606966.zip |
Make do_write loop until the entire buffer is written.
2001-02-04 Jeffrey Stedfast <fejj@ximian.com>
* camel-stream-filter.c (do_write): Make do_write loop until the
entire buffer is written.
svn path=/trunk/; revision=7963
Diffstat (limited to 'camel/camel-stream-fs.c')
-rw-r--r-- | camel/camel-stream-fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-stream-fs.c b/camel/camel-stream-fs.c index 95778de63c..599d06cf7a 100644 --- a/camel/camel-stream-fs.c +++ b/camel/camel-stream-fs.c @@ -287,7 +287,7 @@ stream_write (CamelStream *stream, const char *buffer, size_t n) FD_ZERO(&wrset); FD_SET(stream_fs->fd, &wrset); FD_SET(cancel_fd, &rdset); - fdmax = MAX(stream_fs->fd, cancel_fd)+1; + fdmax = MAX(stream_fs->fd, cancel_fd)+1; select(fdmax, &rdset, &wrset, 0, NULL); if (FD_ISSET(cancel_fd, &rdset)) { fcntl(stream_fs->fd, F_SETFL, flags); @@ -320,7 +320,7 @@ stream_close (CamelStream *stream) if (close (((CamelStreamFs *)stream)->fd) == -1) return -1; - ((CamelStreamFs *)stream)->fd= -1; + ((CamelStreamFs *)stream)->fd = -1; return 0; } |