fix lseek errors from flushing input pipes on interix
2010-10-20 Paolo Bonzini <bonzini@gnu.org> * autoboot.conf: Add fwriting. * sed/utils.c: Use it.
This commit is contained in:
1 parent
b6844362ed
commit
3c9cae6ca8
3 files changed
+11
-3
No files matched your search
@@ -1,3 +1,8 @@
|
||||
2010-10-20 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* autoboot.conf: Add fwriting.
|
||||
* sed/utils.c: Use it.
|
||||
|
||||
2010-08-30 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* Makefile.am (dist-hook): Remove COPYRIGHT_YEAR check.
|
||||
|
||||
+3
-3
@@ -18,9 +18,9 @@
|
||||
|
||||
# gnulib modules used by this package.
|
||||
gnulib_modules="
|
||||
acl alloca btowc extensions getline getopt gettext localcharset
|
||||
mbrlen mbrtowc memchr mbsinit mkostemp obstack pathmax rename
|
||||
selinux-h snprintf stdbool stat-macros strerror strverscmp ssize_t
|
||||
acl alloca btowc extensions fwriting getline getopt gettext
|
||||
localcharset mbrlen mbrtowc memchr mbsinit mkostemp obstack pathmax
|
||||
rename selinux-h snprintf stdbool stat-macros strerror strverscmp ssize_t
|
||||
unlocked-io vasnprintf verify version-etc-fsf wcrtomb wctob"
|
||||
|
||||
SKIP_PO=t
|
||||
|
||||
@@ -277,6 +277,9 @@ void
|
||||
ck_fflush(stream)
|
||||
FILE *stream;
|
||||
{
|
||||
if (!fwriting(stream))
|
||||
return;
|
||||
|
||||
clearerr(stream);
|
||||
if (fflush(stream) == EOF && errno != EBADF)
|
||||
panic("couldn't flush %s: %s", utils_fp_name(stream), strerror(errno));
|
||||
|
||||
Reference in new issue
Block a user