Bug 1741152 - Log IPC fork() failures on non-debug builds. r=nika

Note that `CHROMIUM_LOG` with level `WARNING` or higher will log by
default (via `NS_DebugBreak`) on all build types.

Differential Revision: https://phabricator.services.mozilla.com/D136950
This commit is contained in:
Jed Davis 2022-01-26 20:31:07 +00:00
parent 4d5d40ac77
commit 28020f697f

View File

@ -244,7 +244,7 @@ bool LaunchApp(const std::vector<std::string>& argv,
EnvironmentArray envp = BuildEnvironmentArray(options.env_map);
mozilla::ipc::FileDescriptorShuffle shuffle;
if (!shuffle.Init(options.fds_to_remap)) {
DLOG(WARNING) << "FileDescriptorShuffle::Init failed";
CHROMIUM_LOG(WARNING) << "FileDescriptorShuffle::Init failed";
return false;
}
@ -271,7 +271,7 @@ bool LaunchApp(const std::vector<std::string>& argv,
#endif
if (pid < 0) {
DLOG(WARNING) << "fork() failed: " << strerror(errno);
CHROMIUM_LOG(WARNING) << "fork() failed: " << strerror(errno);
return false;
}