shithub: gefs

Download patch

ref: 7641f050e7a304350a27ab54740b9f6b57cde87e
parent: 8c6bf5fb064673d45f16bd9b97ccb45a54983827
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Apr 9 18:56:31 EDT 2023

main: shuffle flags, rfork(RFNOTEG)

--- a/main.c
+++ b/main.c
@@ -154,10 +154,10 @@
 	case 'd':
 		debug++;
 		break;
-	case 'n':
+	case 's':
 		srvname = EARGF(usage());
 		break;
-	case 's':
+	case 'i':
 		stdio = 1;
 		break;
 	case 'A':
@@ -215,8 +215,8 @@
 		exits(nil);
 	}
 
+	rfork(RFNOTEG);
 	loadfs(dev);
-
 	fs->rdchan = mkchan(32);
 	fs->wrchan = mkchan(32);
 	fs->nsyncers = nproc/2;