mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibWeb: Don't try to wait for HTTP server to exit if kill call fails
This commit is contained in:
parent
a450d64ffa
commit
9585700876
Notes:
github-actions[bot]
2024-12-20 14:00:48 +00:00
Author: https://github.com/tcl3
Commit: 9585700876
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2682
1 changed files with 2 additions and 6 deletions
|
@ -92,15 +92,11 @@ void HttpEchoServerFixture::teardown_impl()
|
|||
if (auto kill_or_error = Core::System::kill(m_process->pid(), SIGINT); kill_or_error.is_error()) {
|
||||
if (kill_or_error.error().code() != ESRCH) {
|
||||
warnln("Failed to kill HTTP echo server, error: {}", kill_or_error.error());
|
||||
m_process = {};
|
||||
return;
|
||||
} else if (auto termination_or_error = m_process->wait_for_termination(); termination_or_error.is_error()) {
|
||||
warnln("Failed to terminate HTTP echo server, error: {}", termination_or_error.error());
|
||||
}
|
||||
}
|
||||
|
||||
if (auto termination_or_error = m_process->wait_for_termination(); termination_or_error.is_error()) {
|
||||
warnln("Failed to terminate HTTP echo server, error: {}", termination_or_error.error());
|
||||
}
|
||||
|
||||
m_process = {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue