diff options
Diffstat (limited to 'src/corelib/io')
-rw-r--r-- | src/corelib/io/qprocess_unix.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/corelib/io/qprocess_unix.cpp b/src/corelib/io/qprocess_unix.cpp index cc753541a2..07d427047d 100644 --- a/src/corelib/io/qprocess_unix.cpp +++ b/src/corelib/io/qprocess_unix.cpp @@ -259,9 +259,8 @@ bool QProcessPrivate::openChannel(Channel &channel) // create the socket notifiers if (threadData.loadRelaxed()->hasEventDispatcher()) { if (&channel == &stdinChannel) { - channel.notifier = new QSocketNotifier(channel.pipe[1], - QSocketNotifier::Write, q); - channel.notifier->setEnabled(false); + channel.notifier = new QSocketNotifier(QSocketNotifier::Write, q); + channel.notifier->setSocket(channel.pipe[1]); QObject::connect(channel.notifier, SIGNAL(activated(QSocketDescriptor)), q, SLOT(_q_canWrite())); } else { |