From e65bda24d1ce21b45b4f683e95d89ee7e8ac6c2a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Sat, 5 Sep 1998 21:40:50 +0200
Subject: [PATCH] Minor th_farm() bugfix.

Rev: src/threads.c:1.84
---
 src/threads.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/threads.c b/src/threads.c
index bcc431189d..fb863c7db0 100644
--- a/src/threads.c
+++ b/src/threads.c
@@ -1,5 +1,5 @@
 #include "global.h"
-RCSID("$Id: threads.c,v 1.83 1998/08/27 20:43:25 grubba Exp $");
+RCSID("$Id: threads.c,v 1.84 1998/09/05 19:40:50 grubba Exp $");
 
 int num_threads = 1;
 int threads_disabled = 0;
@@ -1155,7 +1155,10 @@ static struct farmer *new_farmer(void (*fun)(void *), void *args)
   me->harvest = fun;
   co_init( &me->harvest_moon );
 #ifdef UNIX_THREADS
-  thr_create(NULL,65536,farm,(void *)me,THR_DAEMON|THR_DETACHED,0);
+  /* FIXME: Why not increase the stacksize of th_create_small(),
+   * and use it instead?
+   */
+  thr_create(NULL, 65536, farm, me, THR_DAEMON|THR_DETACHED, &me->me);
 #else
   th_create_small(&me->me, farm, me);
 #endif
-- 
GitLab