aboutsummaryrefslogtreecommitdiffstats
path: root/tests/kdc/check-delegation.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/kdc/check-delegation.in')
-rw-r--r--tests/kdc/check-delegation.in12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/kdc/check-delegation.in b/tests/kdc/check-delegation.in
index b5acb1ee8e5b..5fa19adba9a2 100644
--- a/tests/kdc/check-delegation.in
+++ b/tests/kdc/check-delegation.in
@@ -101,15 +101,9 @@ ${kadmin} check ${R4} || exit 1
echo foo > ${objdir}/foopassword
-echo Starting kdc
-${kdc} &
-kdcpid=$!
-
-sh ${wait_kdc}
-if [ "$?" != 0 ] ; then
- kill -9 ${kdcpid}
- exit 1
-fi
+echo Starting kdc; > messages.log
+${kdc} --detach --testing || { echo "kdc failed to start"; exit 1; }
+kdcpid=`getpid kdc`
trap "kill -9 ${kdcpid}; echo signal killing kdc; exit 1;" EXIT