blocxx
Namespaces | Functions

WaitpidThreadFix.hpp File Reference

#include "Types.hpp"
#include "CommonFwd.hpp"
#include "ThreadTypes.hpp"
#include "blocxx/Process.hpp"

Go to the source code of this file.

Namespaces

namespace  BLOCXX_NAMESPACE
 

Taken from RFC 1321.


namespace  BLOCXX_NAMESPACE::WaitpidThreadFix

Functions

BLOCXX_COMMON_API bool BLOCXX_NAMESPACE::WaitpidThreadFix::setWaitpidThreadFixEnabled (bool enabled)
 If a program is single threaded (like the monitor code is), then this function can be called to ensure that the fork/waitpid threading fix is or is not used (on the few platforms that its actually needed for).
BLOCXX_COMMON_API bool BLOCXX_NAMESPACE::WaitpidThreadFix::shouldUseWaitpidThreadFix ()
BLOCXX_COMMON_API ProcessRef BLOCXX_NAMESPACE::WaitpidThreadFix::spawnProcess (char const *exec_path, char const *const argv[], char const *const envp[], Exec::PreExec &pre_exec)
BLOCXX_COMMON_API Process::Status BLOCXX_NAMESPACE::WaitpidThreadFix::waitPid (const ProcId &pid)