change to use new thread library
This commit is contained in:
parent
0a839b8314
commit
334cb1e91c
7 changed files with 41 additions and 24 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue