mirror of
https://github.com/KDE/konsole.git
synced 2026-05-18 19:47:16 -04:00
Add the "Send Signals" menus from KDE 3.5
This reintroduces the "Send Signals" from KDE 3.5. SIGSTOP/CONT/HUP/INT/TERM/KILL/USR1/USR2 Patch by Kasper Laudrup laudrup@stacktrace.dk FIXED-IN: 4.10 FEATURE: 214908
This commit is contained in:
@@ -725,6 +725,18 @@ void Session::refresh()
|
||||
_shellProcess->setWindowSize(existingSize.width(), existingSize.height());
|
||||
}
|
||||
|
||||
void Session::sendSignal(int signal)
|
||||
{
|
||||
const ProcessInfo* process = getProcessInfo();
|
||||
bool ok = false;
|
||||
int pid;
|
||||
pid = process->foregroundPid(&ok);
|
||||
|
||||
if (ok) {
|
||||
::kill(pid, signal);
|
||||
}
|
||||
}
|
||||
|
||||
bool Session::kill(int signal)
|
||||
{
|
||||
if (_shellProcess->pid() <= 0)
|
||||
|
||||
Reference in New Issue
Block a user