diff options
author | Kevin Mitchell <klmitch@mit.edu> | 1997-06-30 17:29:27 +0000 |
---|---|---|
committer | Kevin Mitchell <klmitch@mit.edu> | 1997-06-30 17:29:27 +0000 |
commit | edca5511e1b7da38a458b1d3dada8340e462e750 (patch) | |
tree | 468a497dc622887e63c52c66f51411721fd82551 /src/appl/bsd | |
parent | cce8333a3fe0e8167ce698dec7474f0be980d2b8 (diff) | |
download | krb5-edca5511e1b7da38a458b1d3dada8340e462e750.tar.gz krb5-edca5511e1b7da38a458b1d3dada8340e462e750.tar.xz krb5-edca5511e1b7da38a458b1d3dada8340e462e750.zip |
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/bsd')
-rw-r--r-- | src/appl/bsd/ChangeLog | 8 | ||||
-rw-r--r-- | src/appl/bsd/login.c | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index c1a3bce7a..281bae97c 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 d75a53228..4aa2e8759 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; } |