summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Zahalqa <m@tryfinally.com>2020-08-20 21:57:39 +0300
committerGitHub <noreply@github.com>2020-08-20 20:57:39 +0200
commit16e86a3dda38fe2f2e2233fa14aa5b3ffa04725d (patch)
tree67a995228343e9a07967c26a9e3773750b11cb03
parentd4d9222eea2dff296c841504b4f3f9769b86a49f (diff)
downloadserenity-16e86a3dda38fe2f2e2233fa14aa5b3ffa04725d.zip
SystemServer: Minor #include cleanup in Service.cpp (#3227)
-rw-r--r--Services/SystemServer/Service.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/Services/SystemServer/Service.cpp b/Services/SystemServer/Service.cpp
index 3927577205..cb89033db2 100644
--- a/Services/SystemServer/Service.cpp
+++ b/Services/SystemServer/Service.cpp
@@ -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;