refactor, subprocess: Remove unused Popen::child_created_ data member

This commit is contained in:
Hennadii Stepanov 2024-05-10 14:47:15 +01:00
parent 9e1ccf55e1
commit 05b6f8793c
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -1027,7 +1027,6 @@ private:
std::vector<std::string> vargs_;
std::vector<char*> cargv_;
bool child_created_ = false;
// Pid of the child process
int child_pid_ = -1;
@ -1177,8 +1176,6 @@ inline void Popen::execute_process() noexcept(false)
throw OSError("fork failed", errno);
}
child_created_ = true;
if (child_pid_ == 0)
{
// Close descriptors belonging to parent