Skip exit handlers on OpenBSD since they hang; fom upstream.

This commit is contained in:
ajacoutot 2013-09-20 11:53:47 +00:00
parent 530e223a57
commit bd0d1e4862
2 changed files with 28 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.32 2013/09/20 07:05:12 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.33 2013/09/20 11:53:47 ajacoutot Exp $
SHARED_ONLY= Yes
@ -6,6 +6,7 @@ COMMENT= H.323 gatekeeper
V= 3.4
DISTNAME= gnugk-${V}
REVISION= 0
WRKDIST= ${WRKDIR}/gnugk-${V}

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-gk_cxx,v 1.3 2013/09/20 11:53:47 ajacoutot Exp $
http://openh323gk.cvs.sourceforge.net/viewvc/openh323gk/openh323gk/gk.cxx?r1=1.253&r2=1.254&view=patch
--- gk.cxx.orig Thu Sep 19 15:27:22 2013
+++ gk.cxx Fri Sep 20 13:52:23 2013
@@ -1481,8 +1481,6 @@ void Gatekeeper::Main()
// let's go
RasSrv->Run();
- //HouseKeeping();
-
// graceful shutdown
cerr << "\nShutting down gatekeeper . . . ";
@@ -1494,6 +1492,10 @@ void Gatekeeper::Main()
SetConsoleCtrlHandler((PHANDLER_ROUTINE)WinCtrlHandlerProc, FALSE);
FreeConsole();
#endif // _WIN32
+
+#ifdef P_OPENBSD
+ _exit(0); // skip exit handlers, will hang on OpenBSD 5.3
+#endif
}
namespace {