summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2011-08-22 19:43:38 +0100
committerSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2011-08-22 19:43:38 +0100
commit1ad986335a5d2fc0c9952412d25037fb70226472 (patch)
tree50f969373210262ed039cc0a324d9a29163b51b7 /src/common/util.h
parentf46f6aabb4da8d7c185bf46cb05a9469ca1f11df (diff)
downloadtor-1ad986335a5d2fc0c9952412d25037fb70226472.tar.gz
tor-1ad986335a5d2fc0c9952412d25037fb70226472.zip
Tidy up subprocess code
- Better error handling - Write description of functions - Don't assume non-negative process return values
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h
index d0ad8eb637..902233499f 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -372,7 +372,8 @@ 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, int block);
+int tor_get_exit_code(const process_handle_t process_handle,
+ int block, int *exit_code);
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);