Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7c4258c7 authored by Josh Gao's avatar Josh Gao
Browse files

dumpstate: fix double close.

fdopen takes ownership of the fd it's given, but dump_stat_from_fd
doesn't own the fd it's passed. These APIs should probably be cleaned
up to pass a unique_fd to explicitly transfer ownership, since the
caller immediately closes the fd afterwards, but until then, just dup.

Test: mma
Change-Id: Ie3a3c1b1951d6cc712850c326ca0bcfe46155a83
parent 037b50ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment