| Index: ipc/ipc_channel_posix.cc
|
| diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
|
| index 6ba1f607b3d000b0619b8d77b994ce646c205007..d853e4e535d03e6c2643d54057a3a9a281eab380 100644
|
| --- a/ipc/ipc_channel_posix.cc
|
| +++ b/ipc/ipc_channel_posix.cc
|
| @@ -773,14 +773,20 @@ void ChannelPosix::ClosePipeOnError() {
|
| }
|
|
|
| int ChannelPosix::GetHelloMessageProcId() const {
|
| +#if defined(OS_NACL_NONSFI)
|
| + // In nacl_helper_nonsfi, getpid() invoked by GetCurrentProcId() is not
|
| + // allowed and would cause a SIGSYS crash because of the seccomp sandbox.
|
| + return -1;
|
| +#else
|
| int pid = base::GetCurrentProcId();
|
| #if defined(OS_LINUX)
|
| // Our process may be in a sandbox with a separate PID namespace.
|
| if (global_pid_) {
|
| pid = global_pid_;
|
| }
|
| -#endif
|
| +#endif // defined(OS_LINUX)
|
| return pid;
|
| +#endif // defined(OS_NACL_NONSFI)
|
| }
|
|
|
| void ChannelPosix::QueueHelloMessage() {
|
|
|