Skip to content

Commit 05b6f87

Browse files
committed
refactor, subprocess: Remove unused Popen::child_created_ data member
1 parent 9e1ccf5 commit 05b6f87

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/util/subprocess.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,6 @@ class Popen
10271027
std::vector<std::string> vargs_;
10281028
std::vector<char*> cargv_;
10291029

1030-
bool child_created_ = false;
10311030
// Pid of the child process
10321031
int child_pid_ = -1;
10331032

@@ -1177,8 +1176,6 @@ inline void Popen::execute_process() noexcept(false)
11771176
throw OSError("fork failed", errno);
11781177
}
11791178

1180-
child_created_ = true;
1181-
11821179
if (child_pid_ == 0)
11831180
{
11841181
// Close descriptors belonging to parent

0 commit comments

Comments
 (0)