mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-08 09:30:41 +00:00
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
44f1123ff9
commit
629ddcf381
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94051
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue