summaryrefslogtreecommitdiff
path: root/src/common/compat_pthreads.c
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2015-06-03 03:39:34 +1000
committerteor <teor2345@gmail.com>2015-06-03 04:18:43 +1000
commitb1094fdec505088a39c94da79219d17c10baabef (patch)
tree28fc67760dda256c1ae47abeb623465703e7cefd /src/common/compat_pthreads.c
parent3d653dff5e891c1e547ef7eacbc991410a98c1cb (diff)
downloadtor-b1094fdec505088a39c94da79219d17c10baabef.tar.gz
tor-b1094fdec505088a39c94da79219d17c10baabef.zip
Fix an incorrect comment on spawn_func
spawn_func calls pthread_create on unix, not fork Fix on existing code split out of compat.c into compat_pthreads.c in c2f0d52b7fb9
Diffstat (limited to 'src/common/compat_pthreads.c')
-rw-r--r--src/common/compat_pthreads.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/compat_pthreads.c b/src/common/compat_pthreads.c
index fdc504690b..487f7e5851 100644
--- a/src/common/compat_pthreads.c
+++ b/src/common/compat_pthreads.c
@@ -50,7 +50,8 @@ static pthread_attr_t attr_detached;
static int threads_initialized = 0;
/** Minimalist interface to run a void function in the background. On
- * Unix calls fork, on win32 calls beginthread. Returns -1 on failure.
+ * Unix calls pthread_create, on win32 calls beginthread. Returns -1 on
+ * failure.
* func should not return, but rather should call spawn_exit.
*
* NOTE: if <b>data</b> is used, it should not be allocated on the stack,