diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-19 11:58:12 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-19 11:58:12 +0200 |
commit | 9fe6626a63718635cca6ce8920e1669d099d46a7 (patch) | |
tree | a63b415b0f8a9c2a97ab703234214b6fa7d61eb8 /execute.cc | |
parent | a2be8eba3aaf11a9a73092793d27d6d46b4270cd (diff) |
Make self-aware (and recompile/re-launch as needed)
Diffstat (limited to 'execute.cc')
-rw-r--r-- | execute.cc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -7,6 +7,14 @@ #include <spawn.h> #include <iostream> +/* +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) |