summaryrefslogtreecommitdiff
path: root/execute.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-19 11:58:12 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-19 11:58:12 +0200
commit9fe6626a63718635cca6ce8920e1669d099d46a7 (patch)
treea63b415b0f8a9c2a97ab703234214b6fa7d61eb8 /execute.cc
parenta2be8eba3aaf11a9a73092793d27d6d46b4270cd (diff)
Make self-aware (and recompile/re-launch as needed)
Diffstat (limited to 'execute.cc')
-rw-r--r--execute.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/execute.cc b/execute.cc
index cb96bc5..bb691cf 100644
--- a/execute.cc
+++ b/execute.cc
@@ -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)