summaryrefslogtreecommitdiffstats
path: root/tailburst.c
AgeCommit message (Collapse)Author
2022-01-28fix long line againHEADmasterDominique Martinet
if buffer is full from the start then there is no space left for the next read, leave some room left in that case also add some input generator for testing while we're here
2022-01-28fix more bugs than could be enumerated...Dominique Martinet
- would overwrite to-be-printed content with memmove occasionally - empty lines (n) would be considered as EOF early and make tailburst exit - if no line was found in a read buffer would be grown even if not required (e.g. no current usage check before growing :|)
2017-02-12better eof handlingDominique Martinet
remove pollhup, but clear errno properly so we can return empty read
2017-02-12Add pollhup to detect closed stdinDominique Martinet
2017-02-12add -WallDominique Martinet
2017-02-12setlinebuf stdoutDominique Martinet
2017-02-09fix uninitialized return valueDominique Martinet
2017-02-09add debug, switch to nonblock, fix a couple of bugsDominique Martinet
2017-02-09initDominique Martinet