summaryrefslogtreecommitdiff
path: root/src/read_chars.bash
AgeCommit message (Collapse)Author
2024-08-24read-tty simplification that fixes ALL bugsAndrew Cady
2024-08-21separate write-tty commandAndrew Cady
2024-08-20many changes basically workingAndrew Cady
the problem is that when the top pane sends SIGUSR1 it does not quit the bottom in the right order and an extra character ends up being read from the terminal in the bottom before a write error signals the end of the connection. Our signal of termination from the top is not reaching the right pid, the pid of the socat inside of the read_char needs to be reached by SIGUSR1, instead of $$ the outermost shell, where killing the job in job control should be enough to break the connection to the tty, it remains probably as long as socat remains running, we need to kill the whole process group of read-tty when killing the main process or when it exits
2024-08-19new command: read-ttyAndrew Cady