diff options
author | rsc <devnull@localhost> | 2004-12-27 00:38:59 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-12-27 00:38:59 +0000 |
commit | 334cb1e91ceb2d667c1cfd0b71aa9801bef089ec (patch) | |
tree | d08c04f14c4a76c5d915af7370160b466ed0fdd1 /src/cmd/acme/fsys.c | |
parent | 0a839b83142bba3205fdd5e30d2ba3514aa4513b (diff) | |
download | plan9port-334cb1e91ceb2d667c1cfd0b71aa9801bef089ec.tar.gz plan9port-334cb1e91ceb2d667c1cfd0b71aa9801bef089ec.tar.bz2 plan9port-334cb1e91ceb2d667c1cfd0b71aa9801bef089ec.zip |
change to use new thread library
Diffstat (limited to 'src/cmd/acme/fsys.c')
-rw-r--r-- | src/cmd/acme/fsys.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |