aboutsummaryrefslogtreecommitdiff
path: root/src/appl
diff options
context:
space:
mode:
authorKevin Mitchell <klmitch@mit.edu>1997-06-30 17:29:27 +0000
committerKevin Mitchell <klmitch@mit.edu>1997-06-30 17:29:27 +0000
commitedca5511e1b7da38a458b1d3dada8340e462e750 (patch)
tree468a497dc622887e63c52c66f51411721fd82551 /src/appl
parentcce8333a3fe0e8167ce698dec7474f0be980d2b8 (diff)
downloadkrb5-edca5511e1b7da38a458b1d3dada8340e462e750.zip
krb5-edca5511e1b7da38a458b1d3dada8340e462e750.tar.gz
krb5-edca5511e1b7da38a458b1d3dada8340e462e750.tar.bz2
killpg() wasn't conditionalized in login.c, causing compiles to fail on
Solaris 2.4 (which puts the function into the BSD compatibility libraries). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10105 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl')
-rw-r--r--src/appl/bsd/ChangeLog8
-rw-r--r--src/appl/bsd/login.c4
2 files changed, 12 insertions, 0 deletions
diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog
index c1a3bce..281bae9 100644
--- a/src/appl/bsd/ChangeLog
+++ b/src/appl/bsd/ChangeLog
@@ -1,3 +1,11 @@
+Mon Jun 30 13:21:34 1997 Kevin L Mitchell <klmitch@mit.edu>
+
+ * login.c (dofork): Solaris 2.4 puts killpg in the bsd compatibility
+ libraries. Autoconf correctly determined that it wasn't
+ available, but it wasn't conditionalized out. Added the
+ conditional, using kill(-child, SIGHUP) as a replacement,
+ as suggested by tlyu
+
Thu Jun 5 15:56:54 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
* login.c: Always use the new tty line discpline. [krb5-appl/428]
diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c
index d75a532..4aa2e87 100644
--- a/src/appl/bsd/login.c
+++ b/src/appl/bsd/login.c
@@ -2455,7 +2455,11 @@ dofork()
#endif
#endif
if (hungup)
+#ifdef HAVE_KILLPG
killpg(child, SIGHUP);
+#else
+ kill(-child, SIGHUP);
+#endif
if (pid == child)
break;
}