aboutsummaryrefslogtreecommitdiff
path: root/src/or/cpuworker.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@ev0ke.net>2015-01-21 14:29:03 -0500
committerDavid Goulet <dgoulet@ev0ke.net>2015-01-21 14:31:02 -0500
commit84f5cb749d614deeb66f9032c54cd9885e300493 (patch)
treefb8698d63464c6ac03887ad799e68d274e18e55d /src/or/cpuworker.c
parentf52ac5be74b3cb6f657a6d7a1fa7db2c9595728d (diff)
downloadtor-84f5cb749d614deeb66f9032c54cd9885e300493.tar.gz
tor-84f5cb749d614deeb66f9032c54cd9885e300493.zip
Fix: remove whitespace and update a comment in cpuworker.c
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r--src/or/cpuworker.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index 3f129ded99..39d2079994 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -171,9 +171,8 @@ update_state_threadfn(void *state_, void *work_)
return WQ_RPL_REPLY;
}
-/** Called when the onion key has changed and we need to spawn new
- * cpuworkers. Close all currently idle cpuworkers, and mark the last
- * rotation time as now.
+/** Called when the onion key has changed so update all CPU worker(s) with
+ * new function pointers with which a new state will be generated.
*/
void
cpuworkers_rotate_keyinfo(void)
@@ -336,7 +335,7 @@ cpuworker_onion_handshake_replyfn(void *work_)
"Unpacking cpuworker reply %p, circ=%p, success=%d",
job, circ, rpl.success);
- if (circ->base_.magic == DEAD_CIRCUIT_MAGIC) {
+ if (circ->base_.magic == DEAD_CIRCUIT_MAGIC) {
/* The circuit was supposed to get freed while the reply was
* pending. Instead, it got left for us to free so that we wouldn't freak
* out when the job->circ field wound up pointing to nothing. */