Files
konsole/src/NullProcessInfo.cpp
Theodore Wang 1b50142053 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.
2023-10-08 13:19:54 +00:00

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()
{
}