Remove some last vestages of _interactiveHack.
Also tie stderr to something for the invocation of pkg_add. Sponsored by: FreeBSD Mall, Inc.
This commit is contained in:
parent
0470047367
commit
244194dd47
@ -167,13 +167,8 @@ package_extract(Device *dev, char *name, Boolean depended)
|
|||||||
pipe(pfd);
|
pipe(pfd);
|
||||||
pid = fork();
|
pid = fork();
|
||||||
if (!pid) {
|
if (!pid) {
|
||||||
extern int _interactiveHack;
|
|
||||||
|
|
||||||
dup2(pfd[0], 0); close(pfd[0]);
|
dup2(pfd[0], 0); close(pfd[0]);
|
||||||
if (!_interactiveHack) {
|
dup2(DebugFD, 1); dup2(1, 2);
|
||||||
dup2(DebugFD, 1);
|
|
||||||
close(2);
|
|
||||||
}
|
|
||||||
close(pfd[1]);
|
close(pfd[1]);
|
||||||
|
|
||||||
/* Prevent pkg_add from wanting to interact in bad ways */
|
/* Prevent pkg_add from wanting to interact in bad ways */
|
||||||
|
Loading…
Reference in New Issue
Block a user