# HG changeset patch # User masneyb # Date 1147625060 0 # Node ID 6968041e4b828ac45d8c323e7b15bd1531842612 # Parent ba82724da370716e0049a0dd423da5830faf0647 2006-5-14 Brian Masney * lib/pty.c (_gftp_ptym_open) - fixes for using the grantpt() function under HP/UX. (from Allyn Fratkin ) (closes #301979) diff -r ba82724da370 -r 6968041e4b82 ChangeLog --- a/ChangeLog Sun May 14 16:40:53 2006 +0000 +++ b/ChangeLog Sun May 14 16:44:20 2006 +0000 @@ -1,4 +1,7 @@ 2006-5-14 Brian Masney + * lib/pty.c (_gftp_ptym_open) - fixes for using the grantpt() function + under HP/UX. (from Allyn Fratkin ) (closes #301979) + * lib/fsplib/fsplib.c lib/fsplib/fsplib.h - updated with FSPLIB 0.8 * lib/fsplib/lock.c lib/pty.c - compile fixes under NetBSD @@ -3338,7 +3341,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.420 2006/05/14 16:40:53 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.421 2006/05/14 16:44:19 masneyb Exp $ tags * debian/* - updated files from Debian maintainer diff -r ba82724da370 -r 6968041e4b82 lib/pty.c --- a/lib/pty.c Sun May 14 16:40:53 2006 +0000 +++ b/lib/pty.c Sun May 14 16:44:20 2006 +0000 @@ -76,16 +76,20 @@ _gftp_ptym_open (char *pts_name, size_t len, int *fds) { char *new_pts_name; + void (*savesig)(); int fdm; if ((fdm = open ("/dev/ptmx", O_RDWR)) < 0) return (GFTP_ERETRYABLE); + savesig = signal (SIGCHLD, SIG_DFL); if (grantpt (fdm) < 0) { + signal(SIGCHLD, savesig); close (fdm); return (GFTP_ERETRYABLE); } + signal (SIGCHLD, savesig); if (unlockpt (fdm) < 0) {