Skip to content

Commit

Permalink
fix: windows and linux don't support fsync
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 8, 2018
1 parent 25bf6fb commit 8be7459
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils/log-update.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import fs from 'fs';

import ansiEscapes from 'ansi-escapes';
import wrapAnsi from 'wrap-ansi';

Expand Down Expand Up @@ -29,8 +27,7 @@ export default class LogUpdate {
}

write(data) {
fs.writeSync(2, data);
fs.fsyncSync(2);
process.stderr.write(data, 'utf-8');
}

clear() {
Expand Down

0 comments on commit 8be7459

Please sign in to comment.