change to use new thread library

This commit is contained in:
rsc 2004-12-27 00:38:59 +00:00
parent 0a839b8314
commit 334cb1e91c
7 changed files with 41 additions and 24 deletions

View file

@ -126,7 +126,7 @@ fsysinit(void)
fmtinstall('F', fcallfmt);
if((u = getuser()) != nil)
user = estrdup(u);
threadcreate(fsysproc, nil, STACK);
proccreate(fsysproc, nil, STACK);
}
void
@ -142,7 +142,7 @@ fsysproc(void *v)
x = nil;
for(;;){
buf = emalloc(messagesize+UTFmax); /* overflow for appending partial rune in xfidwrite */
n = threadread9pmsg(sfd, buf, messagesize);
n = read9pmsg(sfd, buf, messagesize);
if(n <= 0){
if(closing)
break;