aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ios/iostoolhandler.cpp
diff options
context:
space:
mode:
authorFawzi Mohamed <[email protected]>2014-12-01 15:26:13 +0100
committerFawzi Mohamed <[email protected]>2014-12-03 13:39:29 +0100
commita1076c209ace16c6d87f450d876221905a449ad5 (patch)
treed3b29b8247bee6e7e75a1a1a80d2495f6353f53e /src/plugins/ios/iostoolhandler.cpp
parent6b894b50e62961e2ecaa0601eadb36740e87dd53 (diff)
ios: fix kill when running on device
Change-Id: I2bd9a461c055ef8aa5f5ed9facc879def0078f6f Task-number: QTCREATORBUG-13259 Reviewed-by: Eike Ziller <[email protected]> Reviewed-by: Christian Stenger <[email protected]> Reviewed-by: Fawzi Mohamed <[email protected]>
Diffstat (limited to 'src/plugins/ios/iostoolhandler.cpp')
-rw-r--r--src/plugins/ios/iostoolhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/ios/iostoolhandler.cpp b/src/plugins/ios/iostoolhandler.cpp
index cd640edc99b..aab7106cc16 100644
--- a/src/plugins/ios/iostoolhandler.cpp
+++ b/src/plugins/ios/iostoolhandler.cpp
@@ -286,7 +286,8 @@ void IosToolHandlerPrivate::stop(int errorCode)
return;
}
if (process.state() != QProcess::NotRunning) {
- process.terminate();
+ process.write("k\n\r");
+ process.closeWriteChannel();
killTimer.start(1500);
}
}