summaryrefslogtreecommitdiffstats
path: root/contrib/dialog/prgbox.c
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2012-12-30 04:22:34 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2012-12-30 04:22:34 +0000
commit52bf5abd924bc78494905f16ffbd4bd67062240c (patch)
tree6d48accafd38ffd900622df8c9eab499d302c36f /contrib/dialog/prgbox.c
parent7e3a527820c0248a0703bbf8809aabef78a41db6 (diff)
downloadFreeBSD-src-52bf5abd924bc78494905f16ffbd4bd67062240c.zip
FreeBSD-src-52bf5abd924bc78494905f16ffbd4bd67062240c.tar.gz
Revert r241818 that updated dialog to 20120706. This turns out to horribly
break mixed form dialogs in conjunction with the FreeBSD termcap, making the bsdinstall partition editor Add dialog, among other things, completely nonfunctional. This restores dialog 20110707.
Diffstat (limited to 'contrib/dialog/prgbox.c')
-rw-r--r--contrib/dialog/prgbox.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/dialog/prgbox.c b/contrib/dialog/prgbox.c
index cd7bb8c..a3b3ea6 100644
--- a/contrib/dialog/prgbox.c
+++ b/contrib/dialog/prgbox.c
@@ -1,5 +1,5 @@
/*
- * $Id: prgbox.c,v 1.8 2011/10/20 23:42:32 tom Exp $
+ * $Id: prgbox.c,v 1.7 2011/06/30 20:44:13 tom Exp $
*
* prgbox.c -- implements the prg box
*
@@ -31,10 +31,11 @@ dlg_popen(const char *command, const char *type)
{
FILE *result = 0;
int fd[2];
+ int pid;
const char *argv[4];
if ((*type == 'r' || *type != 'w') && pipe(fd) == 0) {
- switch (fork()) {
+ switch (pid = fork()) {
case -1: /* Error. */
(void) close(fd[0]);
(void) close(fd[1]);
OpenPOWER on IntegriCloud