mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
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");
|
||||
|
||||
/* 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");
|
||||
close(p[1]);
|
||||
|
||||
|
|
|
@ -178,7 +178,7 @@ main(int argc, char *argv[])
|
|||
if(!stdio){
|
||||
mfd[0] = p[0];
|
||||
mfd[1] = p[0];
|
||||
if(post9pservice(p[1], service) < 0)
|
||||
if(post9pservice(p[1], service, nil) < 0)
|
||||
sysfatal("post9pservice %s: %r", service);
|
||||
}
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include <fcall.h>
|
||||
#include <thread.h>
|
||||
|
||||
int post9p(int, char*);
|
||||
int debug;
|
||||
char *aname = "";
|
||||
char *keypattern = "";
|
||||
|
@ -67,8 +68,8 @@ threadmain(int argc, char **argv)
|
|||
service = argv[0];
|
||||
|
||||
rfork(RFNOTEG);
|
||||
if(post9pservice(fd, service) < 0)
|
||||
sysfatal("post9pservice: %r");
|
||||
if(post9p(fd, service) < 0)
|
||||
sysfatal("post9p: %r");
|
||||
|
||||
threadexitsall(0);
|
||||
}
|
||||
|
@ -198,7 +199,7 @@ xwrite(void *buf, int n)
|
|||
*/
|
||||
#undef _exits
|
||||
int
|
||||
post9pservice(int fd, char *name)
|
||||
post9p(int fd, char *name)
|
||||
{
|
||||
int i;
|
||||
char *ns, *s;
|
||||
|
|
Loading…
Reference in a new issue