diff options
author | teor <teor2345@gmail.com> | 2015-06-03 03:39:34 +1000 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2015-06-03 04:18:43 +1000 |
commit | b1094fdec505088a39c94da79219d17c10baabef (patch) | |
tree | 28fc67760dda256c1ae47abeb623465703e7cefd /src | |
parent | 3d653dff5e891c1e547ef7eacbc991410a98c1cb (diff) | |
download | tor-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')
-rw-r--r-- | src/common/compat_pthreads.c | 3 |
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, |