summaryrefslogtreecommitdiffstats
path: root/src/qt3support/other/q3process_unix.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-06-24 13:31:04 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-06-24 13:31:04 (GMT)
commit1281617cd15b51f08db392a04387f583197c4cd9 (patch)
tree3f89e82669b12ea49e0586d3ff14c0d01594301e /src/qt3support/other/q3process_unix.cpp
parent181f86f118f5a53abf43bce37758b331b0aabe9a (diff)
parentf6310e6148180d651e95bff482ded47272e38718 (diff)
downloadQt-1281617cd15b51f08db392a04387f583197c4cd9.zip
Qt-1281617cd15b51f08db392a04387f583197c4cd9.tar.gz
Qt-1281617cd15b51f08db392a04387f583197c4cd9.tar.bz2
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-doc-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-doc-team: (63 commits) my changelog for 4.8.0 Add a function that returns the D-Bus local machine ID Add an SSE4.2 even simpler version of toLatin1 Skip boundry neutral characters in bidi itemization symbian socket engine: resolve some fixme and todo items trivial: fix typo in comment Fix QDeclarativeInspector when starting with ,block changelog docu update for QNX 6.5 get rid of anacronysm massive improvements for the QNX screen driver massive improvements for the QNX mouse driver massive improvements for the QNX keyboard driver disable the Embedded Linux data directory permissions check for QNX skip two subtests that are known to fail on QNX implement POSIX IPC based QLock, QWSLock and QWSSharedMemory backends implement POSIX IPC based QSystemSemaphore and QSharedMemory backends add a configure-time check for an IPC support make QProcess really work on QNX make the kernel attempt to emulate an instruction with a misaligned access ...
Diffstat (limited to 'src/qt3support/other/q3process_unix.cpp')
-rw-r--r--src/qt3support/other/q3process_unix.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/qt3support/other/q3process_unix.cpp b/src/qt3support/other/q3process_unix.cpp
index af024bc..426d10f 100644
--- a/src/qt3support/other/q3process_unix.cpp
+++ b/src/qt3support/other/q3process_unix.cpp
@@ -213,7 +213,7 @@ static void q3process_cleanup()
Q3ProcessPrivate::procManager = 0;
}
-#ifdef Q_OS_QNX6
+#ifdef Q_OS_QNX
#define BAILOUT qt_safe_close(tmpSocket);qt_safe_close(socketFD[1]);return -1;
int qnx6SocketPairReplacement (int socketFD[2]) {
int tmpSocket;
@@ -270,7 +270,7 @@ Q3ProcessManager::Q3ProcessManager() : sn(0)
// The SIGCHLD handler writes to a socket to tell the manager that
// something happened. This is done to get the processing in sync with the
// event reporting.
-#ifndef Q_OS_QNX6
+#ifndef Q_OS_QNX
if ( ::socketpair( AF_UNIX, SOCK_STREAM, 0, sigchldFd ) ) {
#else
if ( qnx6SocketPairReplacement (sigchldFd) ) {
@@ -670,14 +670,14 @@ bool Q3Process::start( QStringList *env )
int sStderr[2];
// open sockets for piping
-#ifndef Q_OS_QNX6
+#ifndef Q_OS_QNX
if ( (comms & Stdin) && ::socketpair( AF_UNIX, SOCK_STREAM, 0, sStdin ) == -1 ) {
#else
if ( (comms & Stdin) && qnx6SocketPairReplacement(sStdin) == -1 ) {
#endif
return false;
}
-#ifndef Q_OS_QNX6
+#ifndef Q_OS_QNX
if ( (comms & Stderr) && ::socketpair( AF_UNIX, SOCK_STREAM, 0, sStderr ) == -1 ) {
#else
if ( (comms & Stderr) && qnx6SocketPairReplacement(sStderr) == -1 ) {
@@ -688,7 +688,7 @@ bool Q3Process::start( QStringList *env )
}
return false;
}
-#ifndef Q_OS_QNX6
+#ifndef Q_OS_QNX
if ( (comms & Stdout) && ::socketpair( AF_UNIX, SOCK_STREAM, 0, sStdout ) == -1 ) {
#else
if ( (comms & Stdout) && qnx6SocketPairReplacement(sStdout) == -1 ) {
@@ -782,11 +782,7 @@ bool Q3Process::start( QStringList *env )
::fcntl( fd[1], F_SETFD, FD_CLOEXEC ); // close on exec shows success
if ( env == 0 ) { // inherit environment and start process
-#ifndef Q_OS_QNX4
::execvp( arglist[0], (char*const*)arglist ); // ### cast not nice
-#else
- ::execvp( arglist[0], (char const*const*)arglist ); // ### cast not nice
-#endif
} else { // start process with environment settins as specified in env
// construct the environment for exec
int numEntries = env->count();
@@ -843,11 +839,7 @@ bool Q3Process::start( QStringList *env )
}
}
}
-#ifndef Q_OS_QNX4
::execve( arglist[0], (char*const*)arglist, (char*const*)envlist ); // ### casts not nice
-#else
- ::execve( arglist[0], (char const*const*)arglist,(char const*const*)envlist ); // ### casts not nice
-#endif
}
if ( fd[1] ) {
char buf = 0;