From 9fe6626a63718635cca6ce8920e1669d099d46a7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 19 Jun 2021 11:58:12 +0200 Subject: Make self-aware (and recompile/re-launch as needed) --- execute.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'execute.cc') diff --git a/execute.cc b/execute.cc index cb96bc5..bb691cf 100644 --- a/execute.cc +++ b/execute.cc @@ -7,6 +7,14 @@ #include #include +/* +https://blog.famzah.net/2009/11/20/a-much-faster-popen-and-system-implementation-for-linux/ +https://github.com/famzah/popen-noshell/commit/1f9eaf4eeef348d1efe0f3c7fe8ab670653cfbb1 +https://blog.famzah.net/2018/12/19/posix_spawn-performance-benchmarks-and-usage-examples/ +https://stackoverflow.com/questions/4259629/what-is-the-difference-between-fork-and-vfork/5207945#5207945 + */ + + namespace { int parent_waitpid(pid_t pid) -- cgit v1.2.3