Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions boost/process/posix/executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace boost { namespace process { namespace posix {

struct executor
{
executor() : exe(0), cmd_line(0), env(0) {}
executor() : exe(0), cmd_line(0), env(0), pid(-1) {}

struct call_on_fork_setup
{
Expand Down Expand Up @@ -92,7 +92,7 @@ struct executor
{
boost::fusion::for_each(seq, call_on_fork_setup(*this));

pid_t pid = ::fork();
pid = ::fork();
if (pid == -1)
{
boost::fusion::for_each(seq, call_on_fork_error(*this));
Expand All @@ -113,6 +113,7 @@ struct executor
const char *exe;
char **cmd_line;
char **env;
pid_t pid;
};

}}}
Expand Down