Make process.argv work with zygote

This commit is contained in:
Cheng Zhao 2015-06-19 22:56:10 +08:00
parent b4f90c8c81
commit 83fe340b98
3 changed files with 23 additions and 2 deletions

View file

@ -128,6 +128,12 @@ void NodeBindings::Initialize() {
node::g_standalone_mode = is_browser_;
node::g_upstream_node_mode = false;
#if defined(OS_LINUX)
// Get real command line in renderer process forked by zygote.
if (!is_browser_)
AtomCommandLine::InitializeFromCommandLine();
#endif
// Parse the debug args.
auto args = AtomCommandLine::argv();
for (const std::string& arg : args)