code: plan9front

Download patch

ref: a7016ce07864175f22ee85b537544b63f43935cf
parent: 633bac1e917fe558b35846ffcc729ec2d47d4c99
author: Alex Musolino <alex@musolino.id.au>
date: Sun Mar 5 09:14:13 EST 2023

Mail: don't start plumb procs in their own note groups

Doing so means these procs hang around after acme exits.

--- a/sys/src/cmd/upas/Mail/mbox.c
+++ b/sys/src/cmd/upas/Mail/mbox.c
@@ -956,7 +956,7 @@
 	showlist();
 	fprint(mbox.ctl, "dump %s\n", cmd);
 	fprint(mbox.ctl, "clean\n");
-	procrfork(eventread, nil, Stack, RFNOTEG);
+	proccreate(eventread, nil, Stack);
 	while(1){
 		switch(alt(a)){
 		case Cevent:
@@ -1048,13 +1048,13 @@
 	plumbshowmailfd = plumbopen("showmail", OREAD|OCEXEC);
 
 	mbload();
-	procrfork(plumbseemail, nil, Stack, RFNOTEG);
-	procrfork(plumbshowmail, nil, Stack, RFNOTEG);
+	proccreate(plumbseemail, nil, Stack);
+	proccreate(plumbshowmail, nil, Stack);
 
 	/* avoid duplicate sends when multiple mailboxes are open */
 	if(sender || strcmp(mailbox, "mbox") == 0){
 		plumbsendmailfd = plumbopen("sendmail", OREAD|OCEXEC);
-		procrfork(plumbsendmail, nil, Stack, RFNOTEG);
+		proccreate(plumbsendmail, nil, Stack);
 	}
 	threadcreate(execlog, nil, Stack);
 	threadcreate(mbmain, cmd, Stack);