From: Kevin Mitchell Date: Mon, 30 Jun 1997 17:29:27 +0000 (+0000) Subject: killpg() wasn't conditionalized in login.c, causing compiles to fail on X-Git-Tag: krb5-1.1-beta1~1119 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=edca5511e1b7da38a458b1d3dada8340e462e750;p=krb5.git 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 --- 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 + + * 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 * 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; }