+2002-10-07 Tom Yu <tlyu@mit.edu>
+
+ * default.exp (stop_kerberos_daemons): Kill, expect eof, wait, in
+ that order. Avoids delivery of multiple signals (HUP+TERM) to KDC
+ daemons when shutting down.
+
2002-09-29 Tom Yu <tlyu@mit.edu>
* default.exp (start_kerberos_daemons): Fix to use "tail -f" to
verbose "entered stop_kerberos_daemons"
if [info exists kdc_pid] {
- catch "close -i $kdc_spawn_id"
catch "exec kill $kdc_pid"
+ catch "expect eof"
set kdc_list [wait -i $kdc_spawn_id]
verbose "wait -i $kdc_spawn_id returned $kdc_list (kdc)"
unset kdc_pid
}
if [info exists kadmind_pid] {
- catch "close -i $kadmind_spawn_id"
catch "exec kill $kadmind_pid"
+ catch "expect eof"
set kadmind_list [wait -i $kadmind_spawn_id]
verbose "wait -i $kadmind_spawn_id returned $kadmind_list (kadmind5)"
unset kadmind_pid