After receiving a hang up signal, processes should neither try to write anything on the terminal, nor try to open the tty or "/dev/tty" device. To do so will likely cause a hang on lines with modem control. -Ron