success on the sun
This commit is contained in:
parent
c345061e8d
commit
005a85f3a2
3 changed files with 24 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ post9pservice(int fd, char *name)
|
|||
|
||||
if((ns = getns()) == nil)
|
||||
return -1;
|
||||
|
||||
s = smprint("unix!%s/%s", ns, name);
|
||||
free(ns);
|
||||
if(s == nil)
|
||||
|
|
@ -27,6 +28,8 @@ post9pservice(int fd, char *name)
|
|||
_exits("exec");
|
||||
default:
|
||||
w = wait();
|
||||
if(w == nil)
|
||||
return -1;
|
||||
close(fd);
|
||||
free(s);
|
||||
if(w->msg && w->msg[0]){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue