mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
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 c2f0d52b7f
This commit is contained in:
parent
3d653dff5e
commit
b1094fdec5
6
changes/bug16115-spawn-comment
Normal file
6
changes/bug16115-spawn-comment
Normal file
@ -0,0 +1,6 @@
|
||||
o Minor fixes (threads, comments):
|
||||
- Fix an incorrect comment on spawn_func in compat_pthreads.c.
|
||||
spawn_func calls pthread_create on unix, not fork
|
||||
Patch by "teor".
|
||||
Bugfix on unknown tor version (existing code split out of
|
||||
compat.c into compat_pthreads.c in c2f0d52b7fb9 on 22 Sep 2013).
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user