use it in gssapi.exp in the dejagnu test suite instead of sleeping.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23934
dc483132-0cff-0310-8789-
dd5450dbe970
if ((stmp = create_socket(port)) >= 0) {
if (listen(stmp, max_threads == 1 ? 0 : max_threads) < 0)
perror("listening on socket");
+ fprintf(stderr, "starting...\n");
do {
struct _work_plan *work = malloc(sizeof(struct _work_plan));
spawn $GSSSERVER -export -logfile $tmppwd/gss-server.log -verbose -port [expr 8 + $portbase] gssservice@$hostname
set gss_server_pid [exp_pid]
set gss_server_spawn_id $spawn_id
- sleep 2
+
+ expect {
+ "starting" { }
+ eof { perror "gss-server failed to start" }
+ }
run_client gssclient0 $tmppwd/gss_tk_0 gssclient0
run_client gssclient1 $tmppwd/gss_tk_1 gssclient1