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

Skip to content
Commit 26b3d2fe authored by Mike Kasick's avatar Mike Kasick
Browse files

dumpstate: Skip subsequent showmaps if the first run fails.

dumpstate takes over six minutes to run as each call to "su" (which
dumpstate uses opportunistically on states that require root privileges to
access) takes approximately one second to process.

The vast majority of these "su" calls are made to "showmap", which is
called for every running process.  These calls nearly always fail, either
because dumpstate is denied root access, or because "showmap" isn't
installed.

This greatly speeds up the dumpstate process by skipping subsequent
"showmap" attempts if the first run (on process init) fails.
parent f6849560
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