Commit 920dc7f1 authored by Thomas Haller's avatar Thomas Haller Committed by Nick Kralevich
Browse files

lib/utils.c: add mutex to get_psched_settings()

Let's add a mutex to get_psched_settings() hoping to solve worst
case scenarios when calling get_psched_settings() from multiple
threads.

Also, only read the environment variables once, who knows whether
they are modified concurrently.

(cherry picked from commit 24d669a3a990d1d637fc94698cc4ae2c6e8e178e)

Test: Compiles and ueventd proc_net denial is gone.
Bug: 35197529
Change-Id: Ic49dd28d3ab951a4d1b557a5e27290366f4640cc
parent 7389cb7f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment