Skip to content

Commit

Permalink
[test/lint] Fix build
Browse files Browse the repository at this point in the history
Add comment in ProcessInit().  Not sure why we can't turn this off.
  • Loading branch information
Andy C committed Jan 18, 2023
1 parent ba7ab0e commit 8908f0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions core/executor.py
Expand Up @@ -4,9 +4,7 @@
from __future__ import print_function

from errno import EINTR
import sys

#from _devbuild.gen.option_asdl import builtin_i
from _devbuild.gen.id_kind_asdl import Id
from _devbuild.gen.option_asdl import builtin_i
from _devbuild.gen.runtime_asdl import redirect, trace
Expand Down
6 changes: 3 additions & 3 deletions mycpp/gc_mylib.cc
Expand Up @@ -7,10 +7,10 @@
namespace mylib {

void ProcessInit() {
// Turn off buffering for now.
// TODO: Restore the flush() calls in 'finally'
// Turn off buffering of stdout for now.
// Note: ctx_FlushStdout() doesn't seem to be enough?

setvbuf(stdout, 0, _IONBF, 0);
// setvbuf(stderr, 0, _IONBF, 0);
}

void writeln(Str* s, int fd = kStdout) {
Expand Down

0 comments on commit 8908f0a

Please sign in to comment.