hget/play: fix enviroment leaks
This commit is contained in:
parent
efc0780d86
commit
812e0fd058
3 changed files with 3 additions and 1 deletions
|
@ -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]
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/rc
|
||||
rfork e
|
||||
|
||||
out=/dev/audio
|
||||
typ=()
|
||||
|
|
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue