ref: 80811b7d925e82c1641da2edd35dde41c8f874e2
parent: d9647fa292aa0d2f6fb5b05be51986da6644d91e
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);
--
⑨