summaryrefslogtreecommitdiff
path: root/src/lib/process/process_unix.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2018-11-22 05:22:24 +0100
committerNick Mathewson <nickm@torproject.org>2018-12-17 16:39:28 -0500
commit89393a77e5db804784d4f08ef67fd2831799d65b (patch)
treebc6560f11c60d944b6b220ce0349469bf0c6ca4a /src/lib/process/process_unix.h
parentbb784cf4f36256a8276ba60641d3ff766b9cd9df (diff)
downloadtor-89393a77e5db804784d4f08ef67fd2831799d65b.tar.gz
tor-89393a77e5db804784d4f08ef67fd2831799d65b.zip
Add process_get_pid() to the Process subsystem.
This patch adds support for getting the unique process identifier from a given process_t. This patch implements both support for both the Unix and Microsoft Windows backend. See: https://bugs.torproject.org/28179
Diffstat (limited to 'src/lib/process/process_unix.h')
-rw-r--r--src/lib/process/process_unix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/process/process_unix.h b/src/lib/process/process_unix.h
index 5fc23bcf07..0474746b26 100644
--- a/src/lib/process/process_unix.h
+++ b/src/lib/process/process_unix.h
@@ -30,6 +30,8 @@ void process_unix_free_(process_unix_t *unix_process);
process_status_t process_unix_exec(struct process_t *process);
+process_pid_t process_unix_get_pid(struct process_t *process);
+
int process_unix_write(struct process_t *process, buf_t *buffer);
int process_unix_read_stdout(struct process_t *process, buf_t *buffer);
int process_unix_read_stderr(struct process_t *process, buf_t *buffer);