Skip to content

Commit 991a3e2

Browse files
author
g_j_m
committed
Treat the QProcess with more care so as to avoid a message about the
QProcess being deleted before its process finished. git-svn-id: http://svn.osgeo.org/qgis/trunk@5807 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ad44151 commit 991a3e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/providers/grass/qgsgrass.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ void QgsGrass::init( void )
203203
QProcess p;
204204
p.start ( pagers.at(i) );
205205
p.waitForStarted();
206-
state = p.state();
206+
state = p.state();
207+
p.write("\004"); // Ctrl-D
208+
p.closeWriteChannel();
209+
p.waitForFinished(1000);
207210
p.kill();
208211

209212
if ( state == QProcess::Running )

0 commit comments

Comments
 (0)