From kde-commits Mon Feb 22 12:30:58 2010 From: Sebastian Trueg Date: Mon, 22 Feb 2010 12:30:58 +0000 To: kde-commits Subject: kdesupport/soprano/backends/virtuoso Message-Id: <1266841858.573298.27912.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=126684186606944 SVN commit 1094283 by trueg: Wait for the terminated virtuoso instance to be gone before continuing. M +2 -0 virtuosocontroller.cpp --- trunk/kdesupport/soprano/backends/virtuoso/virtuosocontroller.cpp #1094282:1094283 @@ -37,6 +37,7 @@ #ifndef Q_OS_WIN #include #include +#include #endif Q_DECLARE_METATYPE( QProcess::ExitStatus ) @@ -117,6 +118,7 @@ #ifndef Q_OS_WIN qDebug( "Shutting down Virtuoso instance (%d) which is in our way.", pid ); ::kill( pid_t( pid ), SIGINT ); + ::waitpid( pid_t( pid ), 0, 0 ); #endif pid = 0; }