1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:38:10 +00:00

Kernel: Closing a MasterPTY should generate a TTY hangup.

This commit is contained in:
Andreas Kling 2019-02-05 12:55:19 +01:00
parent 378e20c535
commit 2a0700af9a
4 changed files with 13 additions and 3 deletions

View file

@ -161,3 +161,8 @@ void TTY::set_size(unsigned short columns, unsigned short rows)
m_rows = rows;
m_columns = columns;
}
void TTY::hang_up()
{
generate_signal(SIGHUP);
}