Skip to content

Conversation

@yannick
Copy link
Contributor

@yannick yannick commented Jun 29, 2017

fixes #1345

@ghost
Copy link

ghost commented Jun 29, 2017

I find I only need this for Cygwin. I get output on Mac and Linux fine without this. In addition for Cygwin I auto-detect if the debugger is attached, if yes then make these calls.

@kazuho
Copy link
Member

kazuho commented Jun 29, 2017

My understanding is that we need this since file descriptor 1 and 2 might be a non-TTY, in which case libc will not flush the buffer per every line feed (or at least it is permitted to regardless of what the operating system is).

@kazuho kazuho merged commit e874634 into h2o:master Jun 29, 2017
@kazuho kazuho changed the title fix 1345 disable buffering of stdout, stderr Oct 12, 2017
kazuho added a commit that referenced this pull request Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mruby puts output is not properly flushed when redirected to a file

2 participants