From bd26e667a883e05e8a8ce743f5b9ad3586deddd2 Mon Sep 17 00:00:00 2001 From: pooka Date: Sat, 27 Nov 2010 18:30:51 +0000 Subject: [PATCH] Since we are going to handle syscalls in our threads, limit stacksize. (unfortunately though, pthread_attr_setstacksize() has no effect on NetBSD) --- lib/librumpuser/rumpuser_sp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/librumpuser/rumpuser_sp.c b/lib/librumpuser/rumpuser_sp.c index af3c7a8adb17..324b03235ef8 100644 --- a/lib/librumpuser/rumpuser_sp.c +++ b/lib/librumpuser/rumpuser_sp.c @@ -1,4 +1,4 @@ -/* $NetBSD: rumpuser_sp.c,v 1.18 2010/11/26 18:51:03 pooka Exp $ */ +/* $NetBSD: rumpuser_sp.c,v 1.19 2010/11/27 18:30:51 pooka Exp $ */ /* * Copyright (c) 2010 Antti Kantee. All Rights Reserved. @@ -38,7 +38,7 @@ */ #include -__RCSID("$NetBSD: rumpuser_sp.c,v 1.18 2010/11/26 18:51:03 pooka Exp $"); +__RCSID("$NetBSD: rumpuser_sp.c,v 1.19 2010/11/27 18:30:51 pooka Exp $"); #include #include @@ -617,6 +617,8 @@ spserver(void *arg) pthread_attr_init(&pattr_detached); pthread_attr_setdetachstate(&pattr_detached, PTHREAD_CREATE_DETACHED); + /* XXX: doesn't stacksize currently work on NetBSD */ + pthread_attr_setstacksize(&pattr_detached, 32*1024); DPRINTF(("rump_sp: server mainloop\n"));