diff options
author | Peter Pentchev <roam@FreeBSD.org> | 2005-06-14 08:58:47 +0000 |
---|---|---|
committer | Peter Pentchev <roam@FreeBSD.org> | 2005-06-14 08:58:47 +0000 |
commit | fe4f451ee5f772b531d032be959ba01b0a1e3e39 (patch) | |
tree | 1507fa66a383f6956a6dce16930251b04ea743dd /security/stunnel/files/patch-src::sthreads.c | |
parent | Add p5-WebService-Technorati 0.04, a Perl interface to the Technorati (diff) |
Fix the stunnel ucontext-related problems using a patch from the author,
Michael Trojnara[1].
Also, add the build-time WITH_FORK, WITH_PTHREAD, and WITH_UCONTEXT knobs
to control the stunnel threading model used, based on Vasil Dimov's PR's
with some modifications [2].
While I'm here, add in a <sys/types.h> inclusion that seems to be needed
for <ucontext.h> at least on FreeBSD 6.0/sparc64.
Reported by: many
Pointy hat to: roam (myself) for both not noticing this and then letting
it linger for a while
Obtained from: Michael Trojnara's BSD patch from
<53594c631989fde6ca0bdb3435b93dfe@mirt.net> [1]
PR: 81289, 82202 [2]
Submitted by: Vasil Dimov
Notes
Notes:
svn path=/head/; revision=137420
Diffstat (limited to '')
-rw-r--r-- | security/stunnel/files/patch-src::sthreads.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/security/stunnel/files/patch-src::sthreads.c b/security/stunnel/files/patch-src::sthreads.c new file mode 100644 index 000000000000..d1dfd346efb0 --- /dev/null +++ b/security/stunnel/files/patch-src::sthreads.c @@ -0,0 +1,12 @@ +*** src/sthreads.c.old Mon Jun 13 21:34:53 2005 +--- src/sthreads.c Mon Jun 13 22:15:01 2005 +*************** +*** 63,68 **** +--- 63,69 ---- + + static void ctx_cleanup_func(void) { /* cleanup the active thread */ + s_log(LOG_DEBUG, "Context %ld closed", ready_head->id); ++ makecontext(&ctx_cleanup, ctx_cleanup_func, 0); + s_poll_wait(NULL, 0); /* wait on poll() */ + } + |