aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/post9p.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/post9p.c')
-rw-r--r--src/lib9/post9p.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib9/post9p.c b/src/lib9/post9p.c
index ddedf62e..44c09431 100644
--- a/src/lib9/post9p.c
+++ b/src/lib9/post9p.c
@@ -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]){