forked from qt-creator/qt-creator
LinuxDevice: Fix stopping remote app when run in terminal
Before, the SshProcessInterface was trying to run kill command (on remote host) for the running processId. However, in case of terminal process the returned processId is an id of ssh running through creator process stub, not the id of remote process. The fix is to redirect a call to sendControlSignal into the internal terminal process. Change-Id: I57509fd61a54c335ab0a34f8ca0dffb3d75da696 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -31,12 +31,13 @@ private:
|
||||
virtual void handleDone(const Utils::ProcessResultData &resultData);
|
||||
virtual void handleReadyReadStandardOutput(const QByteArray &outputData);
|
||||
virtual void handleReadyReadStandardError(const QByteArray &errorData);
|
||||
virtual void handleSendControlSignal(Utils::ControlSignal controlSignal) = 0;
|
||||
|
||||
virtual QString fullCommandLine(const Utils::CommandLine &commandLine) const = 0;
|
||||
|
||||
void start() final;
|
||||
qint64 write(const QByteArray &data) final;
|
||||
void sendControlSignal(Utils::ControlSignal controlSignal) override = 0;
|
||||
void sendControlSignal(Utils::ControlSignal controlSignal) final;
|
||||
|
||||
friend class SshProcessInterfacePrivate;
|
||||
SshProcessInterfacePrivate *d = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user