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
1c3de3387c
commit
30b44d95a2
3 files changed
+10
-2
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-09-20 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* doc/configure.ac: Mention bug-sed@gnu.org.
|
||||
|
||||
+2
-2
@@ -18,8 +18,8 @@
|
||||
|
||||
# gnulib modules used by this package.
|
||||
gnulib_modules="
|
||||
acl alloca btowc c-ctype extensions getline getopt gettext localcharset
|
||||
mbrlen mbrtowc mbsinit memchr mkostemp obstack pathmax regex
|
||||
acl alloca btowc c-ctype extensions fwriting getline getopt gettext
|
||||
localcharset mbrlen mbrtowc mbsinit memchr mkostemp obstack pathmax regex
|
||||
rename selinux-h stdbool stat-macros ssize_t strerror strverscmp
|
||||
unlocked-io verify version-etc-fsf wcrtomb wctob"
|
||||
|
||||
|
||||
@@ -278,6 +278,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