Package: amule
Version: 1.2.6+rc8-3
Severity: normal
Tags: patch
Preview feature seems to be waiting for the preview process to finish, and
amule (or at least the GUI) freezes as a consequence of this.
This appears to be a bug in WxWindows. According to the documentation, the
default behaviour in wxExecute() is to _not_ wait for child to finish. I tried
to force it with:
diff -ur amule-1.2.6+rc8.old/src/DownloadListCtrl.cpp
amule-1.2.6+rc8/src/DownloadListCtrl.cpp
--- amule-1.2.6+rc8.old/src/DownloadListCtrl.cpp 2004-12-17
17:55:45.000000000 +0100
+++ amule-1.2.6+rc8/src/DownloadListCtrl.cpp 2005-04-25 19:50:38.000000000
+0200
@@ -2095,6 +2095,6 @@
}
*/
command.Append(wxT("\""));
- wxExecute(command);
+ wxExecute(command, wxEXEC_ASYNC, NULL);
}
but this doesn't seem to work either. I think this is an wxwindows bug.
(i'm putting the wxwindows maintainer on CC, please reassign if adequate)
For what amule is concerned, this cheap hack using fork worked fine here:
diff -ur amule-1.2.6+rc8.old/src/DownloadListCtrl.cpp
amule-1.2.6+rc8/src/DownloadListCtrl.cpp
--- amule-1.2.6+rc8.old/src/DownloadListCtrl.cpp 2004-12-17
17:55:45.000000000 +0100
+++ amule-1.2.6+rc8/src/DownloadListCtrl.cpp 2005-04-25 20:09:52.000000000
+0200
@@ -2095,6 +2095,9 @@
}
*/
command.Append(wxT("\""));
- wxExecute(command);
-
+ if (fork () == 0)
+ {
+ wxExecute(command);
+ exit (0);
+ }
}
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-1-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL
set to C)
Versions of packages amule depends on:
ii libatk1.0-0 1.8.0-4 The ATK accessibility toolkit
ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an
ii libcurl3 7.13.2-2 Multi-protocol file transfer libra
ii libgcc1 1:3.4.3-12 GCC support library
ii libglib2.0-0 2.6.4-1 The GLib library of C routines
ii libgtk2.0-0 2.6.4-1 The GTK+ graphical user interface
ii libidn11 0.5.13-1.0 GNU libidn library, implementation
ii libpango1.0-0 1.8.1-1 Layout and rendering of internatio
ii libpng12-0 1.2.8rel-1 PNG library - runtime
ii libreadline5 5.0-10 GNU readline and history libraries
ii libssl0.9.7 0.9.7e-3 SSL shared libraries
ii libstdc++5 1:3.3.5-12 The GNU Standard C++ Library v3
ii libwxgtk2.5.3 2.5.3.2 wxWidgets Cross-platform C++ GUI t
ii libx11-6 4.3.0.dfsg.1-12.0.1 X Window System protocol client li
ii xlibs 4.3.0.dfsg.1-12 X Keyboard Extension (XKB) configu
ii zlib1g 1:1.2.2-4 compression library - runtime
-- no debconf information
--
.''`. Proudly running Debian GNU/kFreeBSD unstable/unreleased (on UFS2+S)
: :' :
`. `' http://www.debian.org/ports/kfreebsd-gnu
`-
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]