do setup_handlers AFTER creating theKProcessController, so that if

the childhandler is called right away, it will not crash.
Fixes kded crashes on start.
This commit is contained in:
espie 2005-01-28 09:40:30 +00:00
parent 01bb9d7fa9
commit 10e9652ca4
2 changed files with 24 additions and 1 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.43 2004/12/16 07:25:25 alek Exp $
# $OpenBSD: Makefile,v 1.44 2005/01/28 09:40:30 espie Exp $
COMMENT= "K Desktop Environment, libraries"
CATEGORIES= x11 x11/kde
VERSION= 3.3.2
DISTNAME= kdelibs-${VERSION}
PKGNAME= ${DISTNAME}p0
MODKDE_VERSION?= 3.3.0
FLAVORS=debug

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-kdecore_kprocctrl_cpp,v 1.1 2005/01/28 09:40:30 espie Exp $
--- kdecore/kprocctrl.cpp.orig Fri Jan 28 02:37:56 2005
+++ kdecore/kprocctrl.cpp Fri Jan 28 02:39:25 2005
@@ -39,7 +39,10 @@ int KProcessController::refCount;
void KProcessController::ref()
{
if( !refCount )
+ {
theKProcessController = new KProcessController;
+ setupHandlers();
+ }
refCount++;
}
@@ -71,7 +74,6 @@ KProcessController::KProcessController()
QObject::connect( notifier, SIGNAL(activated(int)),
SLOT(slotDoHousekeeping()));
- setupHandlers();
}
KProcessController::~KProcessController()