$Log$
+ Revision 629.9 2005/01/21 20:20:06 ajc
+ * Increase per-thread stack size from 128k to 256k. This fixes the
+ crashing IMAP service on 64-bit Linux.
+
Revision 629.8 2005/01/19 20:49:46 ajc
* Minor fixenbugs after running with Valgrind
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
int old_buffer_len = 0;
if (CC->redirect_fp != NULL) {
- fwrite(buf, nbytes, 1, CC->redirect_fp);
+ fwrite(buf, (size_t)nbytes, (size_t)1, CC->redirect_fp);
return;
}
return;
}
- /* we seem to need something bigger than FreeBSD's default 64k stack */
-
- if ((ret = pthread_attr_setstacksize(&attr, 128 * 1024))) {
+ /* Our per-thread stacks need to be bigger than the default size, otherwise
+ * the MIME parser crashes on FreeBSD, and the IMAP service crashes on
+ * 64-bit Linux.
+ */
+ if ((ret = pthread_attr_setstacksize(&attr, 256 * 1024))) {
lprintf(CTDL_EMERG, "pthread_attr_setstacksize: %s\n", strerror(ret));
time_to_die = -1;
pthread_attr_destroy(&attr);