// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SANDBOX_LINUX_SERVICES_SCOPED_PROCESS_H_ #define SANDBOX_LINUX_SERVICES_SCOPED_PROCESS_H_ #include "base/functional/callback_forward.h" #include "base/process/process_handle.h" #include "sandbox/sandbox_export.h" namespace sandbox { // fork() a child process that will run a Closure. // After the Closure has run, the child will pause forever. If this object // is detroyed, the child will be destroyed, even if the closure did not // finish running. It's ok to signal the child from outside of this class to // destroy it. // This class cannot be instanciated from a multi-threaded process, as it needs // to fork(). class SANDBOX_EXPORT ScopedProcess { … }; } // namespace sandbox #endif // SANDBOX_LINUX_SERVICES_SCOPED_PROCESS_H_