Lines
100 %
Functions
#if !defined(__linux__)
#error "Linux platform file is part of non-Linux build."
#endif
#include "source/exe/platform_impl.h"
#include <sys/prctl.h>
#include "source/common/common/thread_impl.h"
#include "source/common/filesystem/filesystem_impl.h"
namespace Envoy {
PlatformImpl::PlatformImpl()
: thread_factory_(Thread::PosixThreadFactory::create()),
file_system_(std::make_unique<Filesystem::InstanceImplPosix>()) {}
PlatformImpl::~PlatformImpl() = default;
bool PlatformImpl::enableCoreDump() { return prctl(PR_SET_DUMPABLE, 1) != -1; }
} // namespace Envoy