]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Rename tor_process_destroy() to tor_process_handle_destroy().
authorGeorge Kadianakis <desnacked@gmail.com>
Mon, 24 Oct 2011 14:04:31 +0000 (16:04 +0200)
committerGeorge Kadianakis <desnacked@gmail.com>
Mon, 24 Oct 2011 14:04:31 +0000 (16:04 +0200)
src/common/util.c
src/common/util.h
src/or/transports.c

index 9df88eb49a12377fd9524570996931329feafea7..198a88b8fcc2911365c3f35be1930dfe3c5a5e61 100644 (file)
@@ -3520,8 +3520,8 @@ tor_spawn_background(const char *const filename, const char **argv,
  *  If <b>also_terminate_process</b> is true, also terminate the
  *  process of the process handle. */
 void
-tor_process_destroy(process_handle_t *process_handle,
-                    int also_terminate_process)
+tor_process_handle_destroy(process_handle_t *process_handle,
+                           int also_terminate_process)
 {
   if (also_terminate_process) {
     if (tor_terminate_process(process_handle) < 0) {
index 9d3472ae8bf3ecf9a1509c28dc7a7b265cefce67..0ff328fc9a650441af40e7ee2eb1eae22df389c1 100644 (file)
@@ -420,8 +420,8 @@ 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);
+void tor_process_handle_destroy(process_handle_t *process_handle,
+                                int also_terminate_process);
 
 #ifdef UTIL_PRIVATE
 /* Prototypes for private functions only used by util.c (and unit tests) */
index fc95a73c8c13cf7270bab3e879c8d89c4f77cd75..e60e98f4ea8f2ba7c4c70cfc65a6daf25035909a 100644 (file)
@@ -238,7 +238,7 @@ proxy_prepare_for_restart(managed_proxy_t *mp)
   tor_assert(mp->conf_state == PT_PROTO_COMPLETED);
 
   /* destroy the process handle and terminate the process. */
-  tor_process_destroy(mp->process_handle, 1);
+  tor_process_handle_destroy(mp->process_handle, 1);
 
   /* create process handle for the upcoming new process. */
   mp->process_handle = tor_malloc_zero(sizeof(process_handle_t));
@@ -545,7 +545,7 @@ managed_proxy_destroy(managed_proxy_t *mp,
   /* free the argv */
   free_execve_args(mp->argv);
 
-  tor_process_destroy(mp->process_handle, also_terminate_process);
+  tor_process_handle_destroy(mp->process_handle, also_terminate_process);
 
   tor_free(mp);
 }