CVSROOT: /sources/hurdextras
Module name: mboxfs
Changes by: Samuel Thibault <sthibaul> 20/08/01 12:24:32
Modified files:
. : mboxfs.c
Log message:
Migrate mboxfs to libpthread
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/mboxfs/mboxfs.c?cvsroot=hurdextras&r1=1.5&r2=1.6
Patches:
Index: mboxfs.c
===================================================================
RCS file: /sources/hurdextras/mboxfs/mboxfs.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- mboxfs.c 8 Jul 2013 09:01:52 -0000 1.5
+++ mboxfs.c 1 Aug 2020 16:24:32 -0000 1.6
@@ -494,8 +494,8 @@
return 0;
}
-static void
-read_mbox ()
+static void *
+read_mbox (void *foo)
{
if (mbox_open_mailbox (&main_context) != 0)
error (1, 0, "Provided mailbox could not be parsed (%s, type %s).",
@@ -565,9 +565,12 @@
/* Load the mailbox. */
if (mboxfs_options.threaded)
- cthread_fork ((cthread_fn_t) read_mbox, NULL);
+ {
+ pthread_t t;
+ pthread_create (&t, NULL, read_mbox, NULL);
+ }
else
- read_mbox ();
+ read_mbox (NULL);
return 0;
}
_______________________________________________
Hurdextras-commit mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/hurdextras-commit