]> git.ipfire.org Git - thirdparty/tor.git/commit
Remove buffered I/O stream usage in process_handle_t.
authorAlexander Færøy <ahf@torproject.org>
Wed, 8 Mar 2017 00:47:12 +0000 (01:47 +0100)
committerAlexander Færøy <ahf@torproject.org>
Wed, 8 Mar 2017 23:10:17 +0000 (00:10 +0100)
commit6e78ede73f190f3aaf91623a131a20cf031aad7e
treec7e0da2be9971fb50aa34a7566112cdb0f7afd27
parent86de065aee642585e092969c69681f7e8847a648
Remove buffered I/O stream usage in process_handle_t.

This patch removes the buffered I/O stream usage in process_handle_t and
its related utility functions. This simplifies the code and avoids racy
code where we used buffered I/O on non-blocking file descriptors.

See: https://bugs.torproject.org/21654
changes/bug21654 [new file with mode: 0644]
src/common/util.c
src/common/util.h
src/test/test_pt.c
src/test/test_util_slow.c