mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00
Rage hacking to get bash to run. It finally runs. So cool! :^)
This commit is contained in:
parent
9b70808ab5
commit
d5d45d1088
31 changed files with 567 additions and 61 deletions
|
@ -5,6 +5,8 @@
|
|||
TTY::TTY(unsigned major, unsigned minor)
|
||||
: CharacterDevice(major, minor)
|
||||
{
|
||||
memset(&m_termios, 0, sizeof(m_termios));
|
||||
m_termios.c_lflag |= ISIG | ECHO;
|
||||
}
|
||||
|
||||
TTY::~TTY()
|
||||
|
@ -42,6 +44,8 @@ void TTY::emit(byte ch)
|
|||
|
||||
void TTY::interrupt()
|
||||
{
|
||||
if (!should_generate_signals())
|
||||
return;
|
||||
dbgprintf("%s: Interrupt ^C pressed!\n", ttyName().characters());
|
||||
if (pgid()) {
|
||||
dbgprintf("%s: Send SIGINT to everyone in pgrp %d\n", ttyName().characters(), pgid());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue