openbsd-ports/www/ruby-passenger/patches/patch-ext_common_AgentBase_cpp
jeremy b43ac205b0 Update to 3.0.11. Support by the standalone version of passenger by
splitting into a multipackage, with a subpackage for the standalone
version (which embeds a version of nginx).  The standalone version
operates much like other ruby webservers, serving a single ruby/rack
application.

Switch to using the gem version of passenger.  Because the gem
installs into a versioned directory, setup symlinks to the
versioned directory so that nginx configuration files don't need
to be modified when the version is updated.
2011-12-13 18:38:17 +00:00

24 lines
743 B
Plaintext

$OpenBSD: patch-ext_common_AgentBase_cpp,v 1.3 2011/12/13 18:38:18 jeremy Exp $
Apparently there are issues using sigaltstack with pthreads.
--- ext/common/AgentBase.cpp.orig Wed Dec 31 16:00:00 1969
+++ ext/common/AgentBase.cpp Wed Nov 30 10:51:43 2011
@@ -320,10 +320,12 @@ installAbortHandler() {
stack.ss_flags = 0;
if (sigaltstack(&stack, NULL) != 0) {
int e = errno;
- fprintf(stderr, "Cannot install an alternative stack for use in signal handlers: %s (%d)\n",
- strerror(e), e);
- fflush(stderr);
- abort();
+ if (e != EINVAL) {
+ fprintf(stderr, "Cannot install an alternative stack for use in signal handlers: %s (%d)\n",
+ strerror(e), e);
+ fflush(stderr);
+ abort();
+ }
}
struct sigaction action;