Index: src/main.c
===================================================================
RCS file: /cvs/gnome/balsa/src/main.c,v
retrieving revision 1.115
diff -u -r1.115 main.c
--- src/main.c	2001/08/10 13:40:52	1.115
+++ src/main.c	2001/08/22 09:10:52
@@ -192,6 +192,13 @@
 
 #ifdef BALSA_USE_THREADS
 static void
+unlock_child(void)
+{
+    libbalsa_unlock_mutt();
+    gdk_threads_leave();
+}
+
+static void
 threads_init(void)
 {
     g_thread_init(NULL);
@@ -221,6 +228,8 @@
 	g_io_channel_unix_new(send_thread_pipes[0]);
     g_io_add_watch(send_thread_msg_receive, G_IO_IN,
 		   (GIOFunc) send_progress_notify_cb, NULL);
+
+    pthread_atfork(NULL, NULL, unlock_child);
 }
 
 static void
