* engine/util.c (vfail): Remove unnecessary sync, fsync, and fflush.

From-SVN: r84253
This commit is contained in:
Aaron W. LaFramboise 2004-07-08 01:08:49 +00:00 committed by Per Bothner
parent 45fdd40502
commit fbf153f263
2 changed files with 4 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
* engine/util.c (vfail): Remove unnecessary sync, fsync, and fflush.
2003-07-01 Daniel Berlin <dberlin@dberlin.org>
* bool.h: Can't include gcc's system.h and bool.h at the same time.

View File

@ -44,13 +44,8 @@ static void vfail(const char *fmt, va_list args) __attribute__((__noreturn__));
static void vfail(const char *fmt, va_list args)
{
vfprintf(stderr, fmt, args);
fflush(stdin);
fflush(stderr);
fflush(stdout);
sync();
fsync(STDIN_FILENO);
fsync(STDERR_FILENO);
fsync(STDOUT_FILENO);
abort();
while (1); /* Work around stupid gcc-2.96-85 bug */
}