Eli Wapniarski
2007-12-14 08:28:30 UTC
Hi Rex
The patch included in the new build reintroduced the kded crash
I recompiled the source with the older patch and kded stopped crashing
So... it would seem
--- kdebase-3.5.7/kioslave/media/mediamanager/halbackend.cpp.orig
2007-08-30 14:45:33.000000000 +0200
+++ kdebase-3.5.7/kioslave/media/mediamanager/halbackend.cpp 2007-08-30
15:03:16.000000000 +0200
@@ -990,8 +990,11 @@
QString HALBackend::listUsingProcesses(const Medium* medium)
{
- QString proclist, fullmsg;
- QString cmdline = QString("/usr/bin/env fuser -vm %1
2>&1").arg(KProcess::quote(medium->mountPoint()));
+ QString proclist, fullmsg, cmdline;
+ if(QFile::exists("/sbin/fuser"))
+ cmdline = QString("/sbin/fuser -vm %1
2>&1").arg(KProcess::quote(medium->mountPoint()));
+ else
+ cmdline = QString("/usr/bin/env fuser -vm %1
2>&1").arg(KProcess::quote(medium->mountPoint()));
FILE *fuser = popen(cmdline.latin1(), "r");
uint counter = 0;
BAD...
Index: kioslave/media/mediamanager/halbackend.cpp
===================================================================
--- kdebase-3.5.8/kioslave/media/mediamanager/halbackend.cpp (revision
724099)
+++ kdebase-3.5.8/kioslave/media/mediamanager/halbackend.cpp (revision
724100)
@@ -74,7 +74,10 @@
const QPtrList<Medium> medlist = m_mediaList.list();
QPtrListIterator<Medium> it (medlist);
for ( const Medium *current_medium = it.current(); current_medium;
current_medium = ++it)
- unmount(current_medium->id());
+ {
+ if( !current_medium->id().startsWith( "/org/kde" ))
+ unmount(current_medium->id());
+ }
/* Remove all the registered media first */
GOOD...
:)
Eli
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
The patch included in the new build reintroduced the kded crash
I recompiled the source with the older patch and kded stopped crashing
So... it would seem
--- kdebase-3.5.7/kioslave/media/mediamanager/halbackend.cpp.orig
2007-08-30 14:45:33.000000000 +0200
+++ kdebase-3.5.7/kioslave/media/mediamanager/halbackend.cpp 2007-08-30
15:03:16.000000000 +0200
@@ -990,8 +990,11 @@
QString HALBackend::listUsingProcesses(const Medium* medium)
{
- QString proclist, fullmsg;
- QString cmdline = QString("/usr/bin/env fuser -vm %1
2>&1").arg(KProcess::quote(medium->mountPoint()));
+ QString proclist, fullmsg, cmdline;
+ if(QFile::exists("/sbin/fuser"))
+ cmdline = QString("/sbin/fuser -vm %1
2>&1").arg(KProcess::quote(medium->mountPoint()));
+ else
+ cmdline = QString("/usr/bin/env fuser -vm %1
2>&1").arg(KProcess::quote(medium->mountPoint()));
FILE *fuser = popen(cmdline.latin1(), "r");
uint counter = 0;
BAD...
Index: kioslave/media/mediamanager/halbackend.cpp
===================================================================
--- kdebase-3.5.8/kioslave/media/mediamanager/halbackend.cpp (revision
724099)
+++ kdebase-3.5.8/kioslave/media/mediamanager/halbackend.cpp (revision
724100)
@@ -74,7 +74,10 @@
const QPtrList<Medium> medlist = m_mediaList.list();
QPtrListIterator<Medium> it (medlist);
for ( const Medium *current_medium = it.current(); current_medium;
current_medium = ++it)
- unmount(current_medium->id());
+ {
+ if( !current_medium->id().startsWith( "/org/kde" ))
+ unmount(current_medium->id());
+ }
/* Remove all the registered media first */
GOOD...
:)
Eli
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace