Skip to content
Snippets Groups Projects
Unverified Commit 86de065a authored by Alexander Hansen Færøy's avatar Alexander Hansen Færøy :speech_balloon: Committed by Alexander Hansen Færøy
Browse files

Use read(2) instead of fgets(3) when reading process output.

This patch modifies `tor_read_all_handle()` to use read(2) instead of
fgets(3) when reading the stdout from the child process. This should
eliminate the race condition that can be triggered in the 'slow/util/*'
tests on slower machines running OpenBSD, FreeBSD and HardenedBSD.

See: https://bugs.torproject.org/21654
parent ad19f150
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment