A generic line-reading callback for communicate()
authorAlexey Spiridonov <lesha@fb.com>
Fri, 25 Apr 2014 22:21:49 +0000 (15:21 -0700)
committerChip Turner <chip@fb.com>
Fri, 25 Jul 2014 16:06:04 +0000 (09:06 -0700)
commit1f4f30304bb22cd7e4320ea73490132259c87d8e
tree8bddd99d74e418e1a9e8f596bd336bb1de1c536e
parentdbcb08a7704f91f03e21db723990592f0df7f5a2
A generic line-reading callback for communicate()

Summary: There are a couple of places where this behavior is useful, and it's not 100% trivial to implement it from scratch. Adding it to Folly to save people code & bugs.

Test Plan: unit tests

Reviewed By: tudorb@fb.com

Subscribers: tjackson, folly@lists, tudorb

FB internal diff: D1297506
folly/Subprocess.cpp
folly/Subprocess.h