fdopen() for writing and reading.

Since that's what we're doing. Doesn't seem like this affected anything,
though.

Change-Id: I0fa915fe2a311d4b3e6e72a9a9a19f52018258c3
This commit is contained in:
Tim Newsome 2018-01-22 11:48:24 -08:00
parent fb2291421b
commit 2fc53c1faa
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ static int remote_bitbang_init(void)
if (remote_bitbang_fd < 0)
return remote_bitbang_fd;
remote_bitbang_file = fdopen(remote_bitbang_fd, "w");
remote_bitbang_file = fdopen(remote_bitbang_fd, "w+");
if (remote_bitbang_file == NULL) {
LOG_ERROR("fdopen: failed to open write stream");
close(remote_bitbang_fd);