[1208] in Kerberos-V5-bugs
krb5b4pl3: slave/kpropd.c: add a debugging message with the child PID
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Sun Mar 19 21:12:21 1995
From: "Jonathan I. Kamens" <jik@cam.ov.com>
Date: Sun, 19 Mar 1995 21:15:31 -0500
To: krb5-bugs@MIT.EDU
This patch causes the parent to print out the child PID when debugging
is enabled.
--- slave/kpropd.c 1995/03/13 21:25:35 1.5
+++ slave/kpropd.c 1995/03/13 21:27:16 1.6
@@ -769,6 +769,7 @@
{
static char *edit_av[4];
int error_ret, save_stderr;
+ int child_pid;
/* <sys/param.h> has been included, so BSD will be defined on
BSD systems */
@@ -793,7 +794,7 @@
edit_av[2] = request;
edit_av[3] = NULL;
- switch(fork()) {
+ switch(child_pid = fork()) {
case -1:
com_err(progname, errno, "while trying to fork %s",
kdb5_edit);
@@ -818,6 +819,8 @@
exit(1);
/*NOTREACHED*/
default:
+ if (debug)
+ printf("Child PID is %d\n", child_pid);
if (wait(&waitb) < 0) {
com_err(progname, errno, "while waiting for %s",
kdb5_edit);