[1217] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5b4pl3: appl/bsd/krlogind.c: use tcgetpgrp(), not TIOCGPGRP, on HP-UX

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Mon Mar 20 14:30:55 1995

From: "Jonathan I. Kamens" <jik@cam.ov.com>
Date: Mon, 20 Mar 1995 14:34:07 -0500
To: krb5-bugs@MIT.EDU

appl/bsd/krlogind.c does the right thing with TIOCSPGRP, using
tcsetpgrp() instead on HP-UX, but doesn't do the same thing with
TIOCGPGRP.  Here's a patch:

--- krlogind.c	1995/03/20 18:52:06	1.15
+++ krlogind.c	1995/03/20 19:18:06
@@ -933,8 +933,13 @@
     w.ws_xpixel = ntohs(w.ws_xpixel);
     w.ws_ypixel = ntohs(w.ws_ypixel);
     (void)ioctl(pty, TIOCSWINSZ, &w);
+#ifdef hpux
+    if ((pgrp = tcgetpgrp(pty)) >= 0)
+	(void) kill(-pgrp, SIGWINCH);
+#else
     if (ioctl(pty, TIOCGPGRP, &pgrp) >= 0)
       (void) killpg(pgrp, SIGWINCH);
+#endif /* hpux */
 #endif
     return (4+sizeof (w));
 }

home help back first fref pref prev next nref lref last post