mirror of
https://github.com/boostorg/process.git
synced 2026-01-22 17:32:42 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8179a99e0 |
@@ -411,7 +411,8 @@ struct default_launcher
|
|||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
detail::on_error(*this, executable, argv, ec, inits...);
|
detail::on_error(*this, executable, argv, ec, inits...);
|
||||||
do { ::waitpid(pid, nullptr, 0); } while (errno == EINTR);
|
int res = 0;
|
||||||
|
do { res = ::waitpid(pid, nullptr, 0); } while ((res == -1) && (errno == EINTR));
|
||||||
return basic_process<Executor>{exec};
|
return basic_process<Executor>{exec};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,7 +124,8 @@ struct fork_and_forget_launcher : default_launcher
|
|||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
detail::on_error(*this, executable, argv, ec, inits...);
|
detail::on_error(*this, executable, argv, ec, inits...);
|
||||||
do { ::waitpid(pid, nullptr, 0); } while (errno == EINTR);
|
int res = 0;
|
||||||
|
do { res = ::waitpid(pid, nullptr, 0); } while ((res != -1) && (errno == EINTR));
|
||||||
return basic_process<Executor>{exec};
|
return basic_process<Executor>{exec};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,7 +161,8 @@ struct pdfork_launcher : default_launcher
|
|||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
detail::on_error(*this, executable, argv, ec, inits...);
|
detail::on_error(*this, executable, argv, ec, inits...);
|
||||||
do { ::waitpid(pid, nullptr, 0); } while (errno == EINTR);
|
int res = 0;
|
||||||
|
do { res = ::waitpid(pid, nullptr, 0); } while ((res == -1) && (errno == EINTR));
|
||||||
return basic_process<Executor>{exec};
|
return basic_process<Executor>{exec};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,7 +121,8 @@ struct vfork_launcher : default_launcher
|
|||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
detail::on_error(*this, executable, argv, ec, inits...);
|
detail::on_error(*this, executable, argv, ec, inits...);
|
||||||
do { ::waitpid(pid, nullptr, 0); } while (errno == EINTR);
|
int res = 0;
|
||||||
|
do { res = ::waitpid(pid, nullptr, 0); } while ((res != -1) && (errno == EINTR));
|
||||||
return basic_process<Executor>{exec};
|
return basic_process<Executor>{exec};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user