mirror of
https://github.com/KDE/konsole.git
synced 2026-06-08 14:05:16 -04:00
When ssh is run via 'exec ssh [ssh arguments]', ProcessInfo::_arguments is not updated since ProcessInfo::readArguments is only called once when the process is started. Thus, SSHProcessInfo::SSHProcessInfo will have soft errors since it relies heavily on reading ProcessInfo::_arguments which are outdated. A solution is to call ProcessInfo::clearArguments followed by ProcessInfo::readArguments whenever ProcessInfo::update is called if there is a change in process name.
38 lines
576 B
C++
38 lines
576 B
C++
/*
|
|
SPDX-FileCopyrightText: 2007-2008 Robert Knight <robertknight@gmail.countm>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "NullProcessInfo.h"
|
|
|
|
using namespace Konsole;
|
|
|
|
NullProcessInfo::NullProcessInfo(int pid)
|
|
: ProcessInfo(pid)
|
|
{
|
|
}
|
|
|
|
void NullProcessInfo::readProcessInfo(int /*pid*/)
|
|
{
|
|
}
|
|
|
|
bool NullProcessInfo::readProcessName(int /*pid*/)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool NullProcessInfo::readCurrentDir(int /*pid*/)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool NullProcessInfo::readArguments(int /*pid*/)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void NullProcessInfo::readUserName()
|
|
{
|
|
}
|