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:
David E. O'Brien 2002-04-07 10:08:55 +00:00
parent 44f1123ff9
commit 629ddcf381
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94051

View file

@ -167,13 +167,8 @@ package_extract(Device *dev, char *name, Boolean depended)
pipe(pfd);
pid = fork();
if (!pid) {
extern int _interactiveHack;
dup2(pfd[0], 0); close(pfd[0]);
if (!_interactiveHack) {
dup2(DebugFD, 1);
close(2);
}
dup2(DebugFD, 1); dup2(1, 2);
close(pfd[1]);
/* Prevent pkg_add from wanting to interact in bad ways */