Kernel: Don't put LocalSocket in SetupState::Completed in bind()

This was causing connect() to unblock immediately for local sockets,
since that's exactly what ConnectBlocker checks for.

Instead, just move to SetupState::Completed when it's accept()ed.
This commit is contained in:
Andreas Kling 2019-10-08 21:32:04 +02:00
parent a1c8c754eb
commit 3aa27b5b0e

View file

@ -88,7 +88,6 @@ KResult LocalSocket::bind(const sockaddr* address, socklen_t address_size)
m_address = local_address;
m_bound = true;
set_setup_state(SetupState::Completed);
return KSuccess;
}