Re: CVS problem resolved.
- From: Chris Gray <cgray nowonder com>
- To: Pawel Salek <pawsa TheoChem kth se>
- Cc: balsa-list gnome org, Ian Campbell <ijc25 cam ac uk>
- Subject: Re: CVS problem resolved.
- Date: Wed, 05 Jul 2000 20:47:08 -0400
On Wed, Jul 05, 2000 at 03:23:49PM +0200, Pawel Salek wrote:
> The main problem seems to be resolved (it wasn't that difficult and I was
> really frightened I would never find the bug in such a large patch)
> (still balsa leaves a zombie on each STMP mail send in threaded version, this
> has to be resolved in long term). Uff. So we can enjoy now cleaner API:
> I have noticed that the replied messages are properly marked immediately
> after sending the reply. You have done great job, Ian!
Try the attached patch to see if it gets rid of the zombie problem.
Cheers,
Chris
--
pick, pack, pock, puck: like drops of water in a fountain falling
softly in the brimming bowl.
? balsapatch
Index: send.c
===================================================================
RCS file: /cvs/gnome/balsa/libbalsa/send.c,v
retrieving revision 1.62
diff -u -r1.62 send.c
--- send.c 2000/06/05 18:08:49 1.62
+++ send.c 2000/07/06 00:18:23
@@ -143,6 +143,7 @@
int message_number = 0;
#ifdef BALSA_USE_THREADS
GtkWidget *send_dialog_source = NULL;
+ static pthread_attr_t attr;
#endif
// GtkWidget *send_dialog_message = NULL;
@@ -252,8 +253,10 @@
/* start queue of messages to send and initiate thread */
sending_mail = TRUE;
pthread_mutex_unlock( &send_messages_lock );
+ pthread_attr_init(&attr);
+ pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
pthread_create( &send_mail,
- NULL,
+ &attr,
(void *) &balsa_send_message_real,
first_message );
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]