summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2011-07-24 23:31:59 +0100
committerunknown <Steven Murdoch@.(none)>2011-07-25 04:08:08 +0100
commit5bf9890b3b18ad98f5ac601992bc08533ce9e209 (patch)
tree8d297ef6fa27c96b7d669fc661b4b1a6ffdea0a2 /src/common/util.h
parent99baa7e45cc65f0683912c59934679df554fa306 (diff)
downloadtor-5bf9890b3b18ad98f5ac601992bc08533ce9e209.tar.gz
tor-5bf9890b3b18ad98f5ac601992bc08533ce9e209.zip
Test case for reading the partial output of a background process
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index c111ba72f2..2efe557857 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -364,6 +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_handle(HANDLE h, char *buf, size_t count, HANDLE hProcess);
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,