On 7/31/20 10:04 AM, Ayappan P2 wrote: > We are passing SIGHUP from another terminal ( not from the terminal which > has the interactive bash shell) . The terminal which has the interactive > bash closes immediately. > > The scenario is we just open two terminals. In one terminal , just invoke > bash . And from another terminal pass SIGHUP to the parent process (ksh) of > bash.
That part is all fine, it's the fact that bash gets SIGHUP when it calls tcsetattr(), when SIGHUP isn't one of the signals that is documented as valid for tcsetattr(). -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/