Little tweaks and documentation.

This commit is contained in:
rsc 2004-03-02 23:11:58 +00:00
parent efc2b0c99e
commit af78a4cd2b
11 changed files with 178 additions and 64 deletions

View file

@ -147,7 +147,7 @@ hostproc(void *arg)
i = 0;
for(;;){
i = 1-i; /* toggle */
n = read(rcfd[0], rcbuf[i].data, sizeof rcbuf[i].data);
n = threadread(rcfd[0], rcbuf[i].data, sizeof rcbuf[i].data);
if(n <= 0){
if(n < 0)
fprint(2, "9term: host read error: %r\n");
@ -163,7 +163,7 @@ void
hoststart(void)
{
hostc = chancreate(sizeof(int), 0);
proccreate(hostproc, hostc, 32*1024);
threadcreate(hostproc, hostc, 32*1024);
}
void