diff options
author | Tom Cherry <tomcherry@google.com> | 2018-11-29 16:50:37 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-11-29 16:50:37 +0000 |
commit | c7cbef4f2dca7de4fb6186df05e0208d7d7fbfa5 (patch) | |
tree | 2e007e9e9dbc3ae5d85059bb51c9b15acf408c91 /linker/linker_utils.cpp | |
parent | 7260329093c3a36536e0bebf4ed5b929430f4efb (diff) | |
parent | 66bc428f93546065ca73779ebefd1082244ecea2 (diff) |
Merge "linker: changes to init work arounds"
Diffstat (limited to 'linker/linker_utils.cpp')
-rw-r--r-- | linker/linker_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linker/linker_utils.cpp b/linker/linker_utils.cpp index d08b161ca..e92667157 100644 --- a/linker/linker_utils.cpp +++ b/linker/linker_utils.cpp @@ -247,7 +247,7 @@ void resolve_paths(std::vector<std::string>& paths, } } -bool is_init() { - static bool ret = (getpid() == 1); +bool is_first_stage_init() { + static bool ret = (getpid() == 1 && access("/proc/self/exe", F_OK) == -1); return ret; } |