mirror of
https://github.com/KDE/konsole.git
synced 2026-06-11 07:26:10 -04:00
Set parent and foreground process ids on macOS
This allows sending signals to work again. Correct macos keytab so Ctrl+C and Ctrl+V work. Add warning to show sending signals require foreground process id to be set.
This commit is contained in:
@@ -793,6 +793,10 @@ private:
|
||||
const QString deviceNumber = QString::fromUtf8(devname(((&kInfoProc->kp_eproc)->e_tdev), S_IFCHR));
|
||||
const QString fullDeviceName = QStringLiteral("/dev/")
|
||||
+ deviceNumber.rightJustified(3, QLatin1Char('0'));
|
||||
|
||||
setParentPid(kInfoProc->kp_eproc.e_ppid);
|
||||
setForegroundPid(kInfoProc->kp_eproc.e_pgid);
|
||||
|
||||
delete [] kInfoProc;
|
||||
|
||||
const QByteArray deviceName = fullDeviceName.toLatin1();
|
||||
|
||||
Reference in New Issue
Block a user