hget/play: fix enviroment leaks

This commit is contained in:
cinap_lenrek 2012-05-26 21:18:41 +02:00
parent efc0780d86
commit 812e0fd058
3 changed files with 3 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#!/bin/rc
rfork e
argv0=$0
fn usage {
echo usage: $argv0 [ -o file ] [ -p body ] [ -r header ] [ -m method ] [ -b baseurl ] url >[1=2]

View file

@ -1,4 +1,5 @@
#!/bin/rc
rfork e
out=/dev/audio
typ=()

View file

@ -69,7 +69,7 @@ startplay(ushort n)
pfd->filename = file; /* mallocated already */
pfd->fd = fd[1];
pfd->cfd = fd[0];
procrfork(decexec, pfd, 4096, RFFDG);
procrfork(decexec, pfd, 4096, RFFDG|RFENVG);
close(fd[1]); /* write fd, for pac4dec */
return fd[0]; /* read fd */
}