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:
Kurt Hindenburg
2021-01-16 16:43:23 -05:00
parent 0f8d4e0ca7
commit e324355c06
3 changed files with 8 additions and 2 deletions

View File

@@ -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();