shithub: sce

Download patch

ref: 97f65643a737ca5c7e6e68bc5efcb979fd1a1160
parent: 89feeced1d027d84fdbaa7446806628b70182e46
author: qwx <[email protected]>
date: Sat Apr 24 05:20:50 EDT 2021

fs: fork namespace

--- a/fs.c
+++ b/fs.c
@@ -619,8 +619,9 @@
 void
 initfs(void)
 {
+	rfork(RFNAMEG);
 	if(bind(".", prefix, MBEFORE|MCREATE) == -1 || chdir(prefix) < 0)
-		fprint(2, "init: %r\n");
+		fprint(2, "initfs: %r\n");
 	loaddb(dbname);
 	loaddb(mapname);
 	initdb();