summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2011-08-28 23:35:02 +0100
committerSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2011-08-28 23:35:02 +0100
commit3f0a197aad3cca6634e4eb63e8441e5507a6b77f (patch)
tree95258c0f2f0db30f2c7d3aecc17d688f7876cf5d /src/common/util.h
parent1da5081ae0cfaf52f11c0d93c42efa211ead35af (diff)
downloadtor-3f0a197aad3cca6634e4eb63e8441e5507a6b77f.tar.gz
tor-3f0a197aad3cca6634e4eb63e8441e5507a6b77f.zip
Make signature of tor_spawn_background more conventional
Conventionally in Tor, structs are returned as pointers, so change tor_spawn_background() to return the process handle in a pointer rather than as return value.
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 442001f489..e0252658ad 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -370,8 +370,8 @@ typedef struct process_handle_s {
#endif // MS_WINDOWS
} process_handle_t;
-process_handle_t tor_spawn_background(const char *const filename,
- const char **argv);
+int tor_spawn_background(const char *const filename, const char **argv,
+ process_handle_t *process_handle);
int tor_get_exit_code(const process_handle_t process_handle,
int block, int *exit_code);
#ifdef MS_WINDOWS