Pipes cannot use SOCK_DGRAM. Back to SOCK_STREAM.
Add debugging to fdwait. Rewrite getcallerpc on PowerMac to be correct.
This commit is contained in:
parent
02a1a5c18b
commit
c91bd3283a
7 changed files with 27 additions and 18 deletions
|
|
@ -167,7 +167,7 @@ threadmain(int argc, char **argv)
|
|||
void
|
||||
mainproc(void *v)
|
||||
{
|
||||
int n;
|
||||
int n, nn;
|
||||
Fcall f;
|
||||
USED(v);
|
||||
|
||||
|
|
@ -186,8 +186,10 @@ mainproc(void *v)
|
|||
f.tag = NOTAG;
|
||||
n = convS2M(&f, vbuf, sizeof vbuf);
|
||||
if(verbose > 1) fprint(2, "* <- %F\n", &f);
|
||||
write(1, vbuf, n);
|
||||
n = read9pmsg(0, vbuf, sizeof vbuf);
|
||||
nn = write(1, vbuf, n);
|
||||
if(n != nn)
|
||||
sysfatal("error writing Tversion: %r\n");
|
||||
n = threadread9pmsg(0, vbuf, sizeof vbuf);
|
||||
if(convM2S(vbuf, n, &f) != n)
|
||||
sysfatal("convM2S failure");
|
||||
if(f.msize < msize)
|
||||
|
|
|
|||
|
|
@ -63,8 +63,6 @@ threadmain(int argc, char *argv[])
|
|||
int ncol;
|
||||
Display *d;
|
||||
|
||||
extern int _threaddebuglevel;
|
||||
_threaddebuglevel = ~0;
|
||||
rfork(RFENVG|RFNAMEG);
|
||||
|
||||
ncol = -1;
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ popinput(void)
|
|||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
getc(void)
|
||||
{
|
||||
if(input == nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue