mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The PTY slave file descriptor is the controlling terminal allocated for the child process. When all file descriptors are being closed, a SIGHUP is triggered for the child process. Keeping the file descriptor in the parent open would prevent the SIGHUP to be delivered to the child process. For proper SIGHUP processing, close the file descriptor in the parent process. Acked-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Hendrik Brueckner <brueckner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>