Commit 1c4ce900 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Handle one case of early lyskomd death.

parent 39a07ab6
......@@ -139,18 +139,27 @@ expect {
}
system "kill -HUP $new_pid"
set bypass 0
set test "non-stale lyskomd sent final line"
expect {
-re "^\[0-9 :\]* $new_pid Press enter to terminate lyskomd$nl" {
pass "$test"
}
}
send "\n"
set test "non-stale lyskomd died"
expect {
eof { pass "$test"; wait }
eof {
fail "$test (unexpected EOF)"
wait
set bypass 1
}
}
unset test
if {$bypass == 0} {
send "\n"
set test "non-stale lyskomd died"
expect {
eof { pass "$test"; wait }
}
unset test
}
# Start a new lyskomd while a lock file for a remote system exists.
system "ln -s inet.lysator.liu.se:4711 db/lyskomd-lock"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment