use temp file to pass env on unix as well

the linux command line can be 32k long ... which might still be not
enough. well, in fact, it just makes the 'ps' output unreadable.
This commit is contained in:
Oswald Buddenhagen
2009-04-09 19:13:40 +02:00
parent 9ec1737db1
commit c8c183f6b4
3 changed files with 67 additions and 13 deletions

View File

@@ -43,10 +43,13 @@
#include <windows.h>
QT_BEGIN_NAMESPACE
class QWinEventNotifier;
class QTemporaryFile;
QT_END_NAMESPACE
#endif
QT_BEGIN_NAMESPACE
class QTemporaryFile;
QT_END_NAMESPACE
namespace Core {
namespace Utils {
@@ -102,12 +105,12 @@ private:
QProcess::ExitStatus m_appStatus;
QLocalServer m_stubServer;
QLocalSocket *m_stubSocket;
QTemporaryFile *m_tempFile;
#ifdef Q_OS_WIN
PROCESS_INFORMATION *m_pid;
HANDLE m_hInferior;
QWinEventNotifier *inferiorFinishedNotifier;
QWinEventNotifier *processFinishedNotifier;
QTemporaryFile *m_tempFile;
#else
QProcess m_process;
QByteArray m_stubServerDir;