diff options
author | George Kadianakis <desnacked@gmail.com> | 2011-10-24 16:01:24 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@gmail.com> | 2011-10-24 16:01:24 +0200 |
commit | 47a5b8009ba1cef0d563b52c28d6e1c68da2fbe9 (patch) | |
tree | 15234dc6b0694171cf09501dfb3c2ba165238fea /src/common/util.h | |
parent | 572aa4ec44223e581665026aa36b6e416558e115 (diff) | |
download | tor-47a5b8009ba1cef0d563b52c28d6e1c68da2fbe9.tar.gz tor-47a5b8009ba1cef0d563b52c28d6e1c68da2fbe9.zip |
Improve general code quality.
- Add a tor_process_get_pid() function that returns the PID of a
process_handle_t.
- Conform to make check-spaces.
- Add some more documentation.
- Improve some log messages.
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index b9f3a5bc58..9d3472ae8b 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -417,6 +417,8 @@ ssize_t tor_read_all_from_process_stderr( const process_handle_t *process_handle, char *buf, size_t count); char *tor_join_win_cmdline(const char *argv[]); +int tor_process_get_pid(process_handle_t *process_handle); + int tor_terminate_process(process_handle_t *process_handle); void tor_process_destroy(process_handle_t *process_handle, int also_terminate_process); |