mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 01:32:14 -05:00
SystemServer: Minor #include cleanup in Service.cpp (#3227)
This commit is contained in:
parent
d4d9222eea
commit
16e86a3dda
Notes:
sideshowbarker
2024-07-19 03:23:29 +09:00
Author: https://github.com/tryfinally Commit: https://github.com/SerenityOS/serenity/commit/16e86a3dda3 Pull-request: https://github.com/SerenityOS/serenity/pull/3227
1 changed files with 8 additions and 9 deletions
|
@ -29,8 +29,7 @@
|
|||
#include <AK/JsonArray.h>
|
||||
#include <AK/JsonObject.h>
|
||||
#include <LibCore/ConfigFile.h>
|
||||
#include <LibCore/LocalSocket.h>
|
||||
#include <fcntl.h>
|
||||
#include <LibCore/Socket.h>
|
||||
#include <grp.h>
|
||||
#include <libgen.h>
|
||||
#include <pwd.h>
|
||||
|
@ -168,13 +167,13 @@ void Service::handle_socket_connection()
|
|||
dbg() << "Ready to read on behalf of " << name();
|
||||
#endif
|
||||
if (m_accept_socket_connections) {
|
||||
int accepted_fd = accept(m_socket_fd, nullptr, nullptr);
|
||||
if (accepted_fd < 0) {
|
||||
perror("accept");
|
||||
return;
|
||||
}
|
||||
spawn(accepted_fd);
|
||||
close(accepted_fd);
|
||||
int accepted_fd = accept(m_socket_fd, nullptr, nullptr);
|
||||
if (accepted_fd < 0) {
|
||||
perror("accept");
|
||||
return;
|
||||
}
|
||||
spawn(accepted_fd);
|
||||
close(accepted_fd);
|
||||
} else {
|
||||
remove_child(*m_socket_notifier);
|
||||
m_socket_notifier = nullptr;
|
||||
|
|
Loading…
Reference in a new issue