|
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
|