diff options
-rw-r--r-- | sandbox/linux/seccomp-bpf/sandbox_bpf.cc | 4 | ||||
-rw-r--r-- | sandbox/linux/services/broker_process.cc | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/sandbox/linux/seccomp-bpf/sandbox_bpf.cc b/sandbox/linux/seccomp-bpf/sandbox_bpf.cc index 6b2327e..15faef6 100644 --- a/sandbox/linux/seccomp-bpf/sandbox_bpf.cc +++ b/sandbox/linux/seccomp-bpf/sandbox_bpf.cc @@ -268,10 +268,6 @@ bool SandboxBPF::RunFunctionInPolicy(void (*code_in_sandbox)(), SANDBOX_DIE("Process started without standard file descriptors"); } - // This code is using fork() and should only ever run single-threaded. - // Most of the code below is "async-signal-safe" and only minor changes - // would be needed to support threads. - DCHECK(IsSingleThreaded(proc_fd_)); pid_t pid = fork(); if (pid < 0) { // Die if we cannot fork(). We would probably fail a little later diff --git a/sandbox/linux/services/broker_process.cc b/sandbox/linux/services/broker_process.cc index 438e972..316883d 100644 --- a/sandbox/linux/services/broker_process.cc +++ b/sandbox/linux/services/broker_process.cc @@ -21,7 +21,6 @@ #include "base/pickle.h" #include "base/posix/eintr_wrapper.h" #include "base/posix/unix_domain_socket_linux.h" -#include "base/process/process_metrics.h" #include "build/build_config.h" #include "sandbox/linux/services/linux_syscalls.h" @@ -147,7 +146,6 @@ bool BrokerProcess::Init(bool (*sandbox_callback)(void)) { return false; } - DCHECK_EQ(1, base::GetNumberOfThreads(base::GetCurrentProcessHandle())); int child_pid = fork(); if (child_pid == -1) { close(socket_pair[0]); |