Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support non-TTY stdin/stdout and fix a bunch of issues along the way #56

Merged
merged 8 commits into from
Apr 5, 2016

Conversation

spbnick
Copy link
Member

@spbnick spbnick commented Apr 5, 2016

No description provided.

Don't call poll(2) in TTY source if all the FDs in the FD list are
inactive, as in this case poll(2) won't be able to return any events and
would wait indefinitely with negative timeout.
Write invalid initial character bytes with their own timestamps, instead
of the last character timestamps in tlog_json_stream_write.
Ignore attempts to move the time back in tlog_json_chunk_advance to
allow characters which are terminated late to be written. Move the time
succession assertion to tlog_json_chunk_write.
Don't rollback the whole character if tlog_json_stream_write was invoked
with an already started character and the complete character didn't fit.

Otherwise the rollback loses data and can even underflow the input
buffer.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 54.895% when pulling 3d8dbd6 on spbnick:master into b51ff70 on Scribery:master.

@spbnick spbnick merged commit 3d8dbd6 into Scribery:master Apr 5, 2016
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.

None yet

2 participants