commit | 005a85f3a2ef85ec1a64ce05a486c84e25cf6f94 | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Fri Jan 07 08:02:54 2005 +0000 |
committer | rsc <devnull@localhost> | Fri Jan 07 08:02:54 2005 +0000 |
tree | af1ea3a3a535f103990eef9411150e6c7c39dad6 | |
parent | c345061e8d81a737b2926da7ecad4b4389677fe8 [diff] [blame] |
success on the sun
diff --git a/src/lib9/post9p.c b/src/lib9/post9p.c index ddedf62..44c0943 100644 --- a/src/lib9/post9p.c +++ b/src/lib9/post9p.c
@@ -10,6 +10,7 @@ if((ns = getns()) == nil) return -1; + s = smprint("unix!%s/%s", ns, name); free(ns); if(s == nil) @@ -27,6 +28,8 @@ _exits("exec"); default: w = wait(); + if(w == nil) + return -1; close(fd); free(s); if(w->msg && w->msg[0]){