Just like the previous commit, but for stap_run_error.
It can happen that a stap session started with stap_run_error ignores
-INT, in which case we need to be a little meaner and use -KILL.
}
timeout {
fail "$TEST_NAME shutdown (timeout)"
+ # Let's try INT again, then KILL in case it's not sufficient
exec kill -INT -- -[exp_pid]
+ sleep 3
+ exec kill -KILL -- -[exp_pid]
}
eof { fail "$TEST_NAME shutdown (eof)" }
}
}
# again for good measure
exec kill -INT -- -[exp_pid]
+ sleep 3
+ # and again for a really good measure
+ exec kill -KILL -- -[exp_pid]
catch close
wait
}