Add Unix backend for the Process subsystem.
commit2e957027e28449d4c3254cc404d154f4bce41bfc
authorAlexander Færøy <ahf@torproject.org>
Thu, 22 Nov 2018 03:43:27 +0000 (22 04:43 +0100)
committerNick Mathewson <nickm@torproject.org>
Mon, 17 Dec 2018 21:39:28 +0000 (17 16:39 -0500)
tree2f04b258f5fbbe081c0e0f84ac8f0c8da5078504
parent35509978dd4985901431abe895d1443e75afc00a
Add Unix backend for the Process subsystem.

This patch adds the Unix backend for the Process subsystem. The Unix
backend attaches file descriptors from the child process's standard in,
out and error to Tor's libevent based main loop using traditional Unix
pipes. We use the already available `waitpid` module to get events
whenever the child process terminates.

See: https://bugs.torproject.org/28179
src/lib/process/include.am
src/lib/process/process.c
src/lib/process/process.h
src/lib/process/process_unix.c [new file with mode: 0644]
src/lib/process/process_unix.h [new file with mode: 0644]
src/test/test_process.c