Module Name:    src
Committed By:   pooka
Date:           Thu May  7 16:03:24 UTC 2009

Modified Files:
        src/sys/rump/librump/rumpkern: emul.c

Log Message:
Don't create unpgc thread if RUMP_THREADS is 0.  The benefit is the
usual: possible to run programs using AF_LOCAL without threads.


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpkern/emul.c
diff -u src/sys/rump/librump/rumpkern/emul.c:1.88 src/sys/rump/librump/rumpkern/emul.c:1.89
--- src/sys/rump/librump/rumpkern/emul.c:1.88	Wed Apr 29 17:51:47 2009
+++ src/sys/rump/librump/rumpkern/emul.c	Thu May  7 16:03:24 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: emul.c,v 1.88 2009/04/29 17:51:47 pooka Exp $	*/
+/*	$NetBSD: emul.c,v 1.89 2009/05/07 16:03:24 pooka Exp $	*/
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.88 2009/04/29 17:51:47 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.89 2009/05/07 16:03:24 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/malloc.h>
@@ -426,6 +426,10 @@
 			printf("rump warning: threads not enabled, not enabling"
 			   " nfs silly rename\n");
 			return 0;
+		} else if (strcmp(thrstore, "unpgc") == 0) {
+			printf("rump warning: threads not enabled, not enabling"
+			   " UNP garbage collection\n");
+			return 0;
 		} else
 			panic("threads not available, setenv RUMP_THREADS 1");
 	}

Reply via email to