killpg() wasn't conditionalized in login.c, causing compiles to fail on
authorKevin Mitchell <klmitch@mit.edu>
Mon, 30 Jun 1997 17:29:27 +0000 (17:29 +0000)
committerKevin Mitchell <klmitch@mit.edu>
Mon, 30 Jun 1997 17:29:27 +0000 (17:29 +0000)
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

src/appl/bsd/ChangeLog
src/appl/bsd/login.c

index c1a3bce7ab2a05fcf188d56be6daecd85fead5d5..281bae97cb4bf1e034d73538cb894da7f2029067 100644 (file)
@@ -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]
index d75a5322816f2bab7375d42fcf55ce6330578ae2..4aa2e87597fe900e436b15f95e3b31a967a5532f 100644 (file)
@@ -2455,7 +2455,11 @@ dofork()
 #endif
 #endif
        if (hungup)
+#ifdef HAVE_KILLPG
            killpg(child, SIGHUP);
+#else
+           kill(-child, SIGHUP);
+#endif
        if (pid == child)
                break;
     }