Skip to content

Commit

Permalink
Treat the QProcess with more care so as to avoid a message about the
Browse files Browse the repository at this point in the history
QProcess being deleted before its process finished.


git-svn-id: http://svn.osgeo.org/qgis/trunk@5807 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Sep 10, 2006
1 parent ad44151 commit 991a3e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/providers/grass/qgsgrass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ void QgsGrass::init( void )
QProcess p;
p.start ( pagers.at(i) );
p.waitForStarted();
state = p.state();
state = p.state();
p.write("\004"); // Ctrl-D
p.closeWriteChannel();
p.waitForFinished(1000);
p.kill();

if ( state == QProcess::Running )
Expand Down

0 comments on commit 991a3e2

Please sign in to comment.