mirror of
https://github.com/KDE/konsole.git
synced 2026-06-08 22:15:00 -04:00
Calls ProcessInfo::readArguments periodically on ProcessInfo::update
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.
This commit is contained in:
@@ -27,6 +27,11 @@ bool NullProcessInfo::readCurrentDir(int /*pid*/)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool NullProcessInfo::readArguments(int /*pid*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void NullProcessInfo::readUserName()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user