From 334cb1e91ceb2d667c1cfd0b71aa9801bef089ec Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 27 Dec 2004 00:38:59 +0000 Subject: change to use new thread library --- src/cmd/acme/fsys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/acme/fsys.c') diff --git a/src/cmd/acme/fsys.c b/src/cmd/acme/fsys.c index a095529f..66b935f8 100644 --- a/src/cmd/acme/fsys.c +++ b/src/cmd/acme/fsys.c @@ -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; -- cgit v1.2.3