diff options
author | Steven Murdoch <Steven.Murdoch@cl.cam.ac.uk> | 2011-07-21 19:26:19 +0100 |
---|---|---|
committer | Steven Murdoch <Steven.Murdoch@cl.cam.ac.uk> | 2011-07-21 19:26:19 +0100 |
commit | fec902dd6024dd170d151409387df5319b6e2ad0 (patch) | |
tree | 16f8e7abdb1c313a8fbee19416b34c56a00db1d9 /src/common/util.h | |
parent | 35c89be02b535e2951b695429bd9b255afb2a7b2 (diff) | |
download | tor-fec902dd6024dd170d151409387df5319b6e2ad0.tar.gz tor-fec902dd6024dd170d151409387df5319b6e2ad0.zip |
Add Windows version of tor_spawn_background and ancillary functions
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.h b/src/common/util.h index 2cf57a125d..c111ba72f2 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -353,7 +353,7 @@ typedef struct process_handle_s { #ifdef MS_WINDOWS HANDLE stdout_pipe; HANDLE stderr_pipe; - HANDLE pid; + PROCESS_INFORMATION pid; #else int stdout_pipe; int stderr_pipe; @@ -364,7 +364,7 @@ typedef struct process_handle_s { process_handle_t tor_spawn_background(const char *const filename, const char **argv); int tor_get_exit_code(const process_handle_t pid); -ssize_t tor_read_all_from_process_stdin(const process_handle_t process_handle, +ssize_t tor_read_all_from_process_stdout(const process_handle_t process_handle, char *buf, size_t count); ssize_t tor_read_all_from_process_stderr(const process_handle_t process_handle, char *buf, size_t count); |