Fix build break with uninitialized boost_fd.
Change-Id: Icf209e2e0f4835db01f61dbf83b4715db9ef03a9
(cherry picked from commit def6c151f4)
This commit is contained in:
parent
82d84897b1
commit
b43225eefb
1 changed files with 2 additions and 2 deletions
|
|
@ -266,8 +266,8 @@ int set_cpuset_policy(int tid, SchedPolicy policy)
|
||||||
policy = _policy(policy);
|
policy = _policy(policy);
|
||||||
pthread_once(&the_once, __initialize);
|
pthread_once(&the_once, __initialize);
|
||||||
|
|
||||||
int fd;
|
int fd = -1;
|
||||||
int boost_fd;
|
int boost_fd = -1;
|
||||||
switch (policy) {
|
switch (policy) {
|
||||||
case SP_BACKGROUND:
|
case SP_BACKGROUND:
|
||||||
fd = bg_cpuset_fd;
|
fd = bg_cpuset_fd;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue