summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra/url.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-10-04 21:11:56 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-10-04 21:11:56 +0200
commit6187e219da80ed8d75c717cd5f7c2f10326c5a81 (patch)
treeffaacc9e80f6cda4a8b04df5f0a2e5949a33eae9 /sys/src/cmd/mothra/url.c
parent0b42409cf44168a945cfa5080f71b61be618beb9 (diff)
mothra: avoid intermediate rc shell processes, use rfork(RFREND) to isolate rendezvous group
Diffstat (limited to 'sys/src/cmd/mothra/url.c')
-rw-r--r--sys/src/cmd/mothra/url.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/mothra/url.c b/sys/src/cmd/mothra/url.c
index 5bb4736b9..dd2ea4ad3 100644
--- a/sys/src/cmd/mothra/url.c
+++ b/sys/src/cmd/mothra/url.c
@@ -143,11 +143,11 @@ urlget(Url *url, int body)
readstr(buf, buf, sizeof(buf));
if(!cistrcmp(buf, "compress"))
- fd = pipeline("/bin/uncompress", fd);
+ fd = pipeline(fd, "exec uncompress");
else if(!cistrcmp(buf, "gzip"))
- fd = pipeline("/bin/gunzip", fd);
+ fd = pipeline(fd, "exec gunzip");
else if(!cistrcmp(buf, "bzip2"))
- fd = pipeline("/bin/bunzip2", fd);
+ fd = pipeline(fd, "exec bunzip2");
return fd;
}