Isn't this what -HUP is supposed to be for in the first place? Maybe a -STOP/-HUP/-HUP situation?
HUP is short for "hangup" which was supposed to be sent when the tty controlling the session the process is in hung up.
HUP is short for "hangup" which was supposed to be sent when the tty controlling the session the process is in hung up.