mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Marked fds to close on exec. (#122)
This commit is contained in:
@@ -381,7 +381,7 @@ namespace comm
|
||||
ss << "/proc/" << uc.pid << "/environ";
|
||||
std::string fn = ss.str();
|
||||
|
||||
const int envfd = open(fn.c_str(), O_RDONLY);
|
||||
const int envfd = open(fn.c_str(), O_RDONLY | O_CLOEXEC);
|
||||
if (!envfd)
|
||||
{
|
||||
LOG_ERR << errno << ": Could not open environ block for process on other end of unix domain socket PID=" << uc.pid;
|
||||
|
||||
Reference in New Issue
Block a user