diff options
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 6b9aec9fa..72a8fa8fe 100644 --- a/linker/linker_utils.cpp +++ b/linker/linker_utils.cpp @@ -240,7 +240,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; } |