Merge pull request #39 from F1ash/master

add method for get pty slave fd;
This commit is contained in:
Petr Vanek
2015-02-05 11:32:07 +01:00
4 changed files with 25 additions and 0 deletions
+5
View File
@@ -79,6 +79,7 @@ Session::Session(QObject* parent) :
//create teletype for I/O with shell process
_shellProcess = new Pty();
ptySlaveFd = _shellProcess->pty()->slaveFd();
//create emulation backend
_emulation = new Vt102Emulation();
@@ -939,6 +940,10 @@ int Session::processId() const
{
return _shellProcess->pid();
}
int Session::getPtySlaveFd() const
{
return ptySlaveFd;
}
SessionGroup::SessionGroup()
: _masterMode(0)