]> granicus.if.org Git - libnl/commit
lib/utils.c: add mutex to get_psched_settings()
authorThomas Haller <thaller@redhat.com>
Tue, 17 Jan 2017 17:49:42 +0000 (18:49 +0100)
committerThomas Haller <thaller@redhat.com>
Tue, 17 Jan 2017 17:53:54 +0000 (18:53 +0100)
commit24d669a3a990d1d637fc94698cc4ae2c6e8e178e
treefadd57ad1d1521ba1185e9e0c1c01a8d058999cb
parentc33dec5a4a7df01730f90dd41f28a53c188aab46
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.
lib/utils.c