Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
added vfork option
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Jun 17, 2016
1 parent 644bd08 commit 943cbb1
Show file tree
Hide file tree
Showing 6 changed files with 375 additions and 135 deletions.
15 changes: 9 additions & 6 deletions include/boost/process/detail/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#if defined(BOOST_POSIX_API)
#include <errno.h>
#include <features.h>
#elif defined(BOOST_WINDOWS_API)
#include <boost/detail/winapi/get_last_error.hpp>
#else
Expand All @@ -42,6 +43,12 @@ inline std::error_code get_last_error() noexcept
{
return std::error_code(errno, std::system_category());
}

//copied from linux spec.
#if defined (__USE_XOPEN_EXTENDED) && !defined (__USE_XOPEN2K8) || defined( __USE_BSD)
#define BOOST_POSIX_HAS_VFORK 1
#endif

#elif defined(BOOST_WINDOWS_API)
namespace windows {namespace extensions {}}
namespace api = windows;
Expand All @@ -64,12 +71,8 @@ inline void throw_last_error()

}

//#if defined(BOOST_POSIX_API)
//namespace posix = boost::process::detail::posix ::extensions;
//#elif defined(BOOST_WINDOWS_API)
//namespace windows = boost::process::detail::windows::extensions;
//#endif
//



template<typename Char> constexpr static Char null_char();
template<> constexpr char null_char<char> (){return '\0';}
Expand Down
Loading

0 comments on commit 943cbb1

Please sign in to comment.