Fix kpropd -S -t to actually exit after processing one connection (it
was breaking out of the switch statement, not the while loop). Use
the -t when invoking kpropd from the dejagnu test framework;
previously it was unnecessary because kpropd -S -d exited after one
connection. Clear up some confusion in the kprop.exp comments about
whether kpropd is expected to exit.
close(s);
if (runonce)
- break;
+ exit(0);
}
}
exit(0);
envstack_push
setup_kerberos_env slave
- spawn $KPROPD -S -d -P [expr 10 + $portbase] -s $tmppwd/srvtab -f $tmppwd/incoming-slave-datatrans -p $KDB5_UTIL -a $tmppwd/kpropd-acl
+ spawn $KPROPD -S -d -t -P [expr 10 + $portbase] -s $tmppwd/srvtab -f $tmppwd/incoming-slave-datatrans -p $KDB5_UTIL -a $tmppwd/kpropd-acl
set kpropd_pid [exp_pid]
set kpropd_spawn_id $spawn_id
# send_user [list $KPROPD -S -d -P [expr 10 + $portbase] -s $tmppwd/srvtab -f $tmppwd/incoming-slave-datatrans -p $KDB5_UTIL -a $tmppwd/kpropd-acl]\n
proc scan_kpropd_output {} {
global kpropd_spawn_id kpropd_pid
- # See if kpropd logged anything.
+ # See if kpropd logged anything. It should exit after processing
+ # one kprop connection.
expect {
-i $kpropd_spawn_id
eof {
- # I think kpropd is supposed to run a loop in standalone
- # mode, but exiting seems to be normal behavior.
-# fail "kprop (server exited)"
wait -i $kpropd_spawn_id
unset kpropd_spawn_id kpropd_pid
}