misc: more post9pservice callers
This commit is contained in:
parent
57ce0d667e
commit
a2660887c0
3 changed files with 6 additions and 5 deletions
|
|
@ -141,7 +141,7 @@ post(char *srv)
|
||||||
fatal("can't create pipe: %r");
|
fatal("can't create pipe: %r");
|
||||||
|
|
||||||
/* 0 will be server end, 1 will be client end */
|
/* 0 will be server end, 1 will be client end */
|
||||||
if(post9pservice(p[1], "plumb") < 0)
|
if(post9pservice(p[1], "plumb", nil) < 0)
|
||||||
fatal("post9pservice plumb: %r");
|
fatal("post9pservice plumb: %r");
|
||||||
close(p[1]);
|
close(p[1]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ main(int argc, char *argv[])
|
||||||
if(!stdio){
|
if(!stdio){
|
||||||
mfd[0] = p[0];
|
mfd[0] = p[0];
|
||||||
mfd[1] = p[0];
|
mfd[1] = p[0];
|
||||||
if(post9pservice(p[1], service) < 0)
|
if(post9pservice(p[1], service, nil) < 0)
|
||||||
sysfatal("post9pservice %s: %r", service);
|
sysfatal("post9pservice %s: %r", service);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
#include <fcall.h>
|
#include <fcall.h>
|
||||||
#include <thread.h>
|
#include <thread.h>
|
||||||
|
|
||||||
|
int post9p(int, char*);
|
||||||
int debug;
|
int debug;
|
||||||
char *aname = "";
|
char *aname = "";
|
||||||
char *keypattern = "";
|
char *keypattern = "";
|
||||||
|
|
@ -67,8 +68,8 @@ threadmain(int argc, char **argv)
|
||||||
service = argv[0];
|
service = argv[0];
|
||||||
|
|
||||||
rfork(RFNOTEG);
|
rfork(RFNOTEG);
|
||||||
if(post9pservice(fd, service) < 0)
|
if(post9p(fd, service) < 0)
|
||||||
sysfatal("post9pservice: %r");
|
sysfatal("post9p: %r");
|
||||||
|
|
||||||
threadexitsall(0);
|
threadexitsall(0);
|
||||||
}
|
}
|
||||||
|
|
@ -198,7 +199,7 @@ xwrite(void *buf, int n)
|
||||||
*/
|
*/
|
||||||
#undef _exits
|
#undef _exits
|
||||||
int
|
int
|
||||||
post9pservice(int fd, char *name)
|
post9p(int fd, char *name)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
char *ns, *s;
|
char *ns, *s;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue