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:
obrien 2002-04-07 10:08:55 +00:00
parent 0470047367
commit 244194dd47

View File

@ -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 */