summaryrefslogtreecommitdiff
path: root/execute.cc
diff options
context:
space:
mode:
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)