]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/platform-bootable-recovery.git/commit
Replace vfork() with fork().
authorGeorge Burgess IV <gbiv@google.com>
Sun, 18 Feb 2018 01:48:45 +0000 (17:48 -0800)
committerGeorge Burgess IV <gbiv@google.com>
Fri, 23 Feb 2018 03:25:22 +0000 (19:25 -0800)
commit1cfb36112901eaf44110d8a29355c3116bee4a3a
tree017221e701fe934293694f48d691cf0c15b6bd5d
parent31bcd7c002c0b556790e7fa0db39297f1624e7e1
Replace vfork() with fork().

The static analyzer complained about the function calls we were doing
here to vector::data() and vector::operator[]:
bootable/recovery/roots.cpp:193:11: warning: This function call is
prohibited after a successful vfork

Since it's not clear that vfork() is needed here, just use fork()
instead.

Bug: None
Test: Reran the static analyzer with only this patch applied. Bug
disappeared
Change-Id: I580f8243a21899f1e1678c8aee6948dfa7f69a1d
roots.cpp