Mercurial > hg > easyhg
diff hgrunner.cpp @ 80:32fa40c3d174
* OS/X doesn't like fork() without exec(). Scrap that, revert to ioctl
author | Chris Cannam |
---|---|
date | Mon, 22 Nov 2010 15:21:12 +0000 |
parents | b522aaa2c053 |
children | 8a4e26dc3182 |
line wrap: on
line diff
--- a/hgrunner.cpp Mon Nov 22 12:30:40 2010 +0000 +++ b/hgrunner.cpp Mon Nov 22 15:21:12 2010 +0000 @@ -33,8 +33,12 @@ #include <stdio.h> #ifndef Q_OS_WIN32 +#ifdef Q_OS_MAC +#include <util.h> +#else #include <pty.h> #endif +#endif HgRunner::HgRunner(QWidget * parent): QProgressBar(parent) { @@ -138,7 +142,7 @@ { DEBUG << "stdOutReady" << endl; QString chunk = QString::fromUtf8(proc->readAllStandardOutput()); - DEBUG << "stdout was " << chunk << endl; + //DEBUG << "stdout was " << chunk << endl; stdOut += chunk; } @@ -146,7 +150,7 @@ { DEBUG << "stdErrReady" << endl; QString chunk = QString::fromUtf8(proc->readAllStandardError()); - DEBUG << "stderr was " << chunk << endl; + //DEBUG << "stderr was " << chunk << endl; stdErr += chunk; if (procInput) { if (chunk.toLower().trimmed() == "password:") {