mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 14:25:06 +00:00
SystemServer: Minor #include cleanup in Service.cpp (#3227)
This commit is contained in:
parent
d4d9222eea
commit
16e86a3dda
1 changed files with 8 additions and 9 deletions
|
@ -29,8 +29,7 @@
|
||||||
#include <AK/JsonArray.h>
|
#include <AK/JsonArray.h>
|
||||||
#include <AK/JsonObject.h>
|
#include <AK/JsonObject.h>
|
||||||
#include <LibCore/ConfigFile.h>
|
#include <LibCore/ConfigFile.h>
|
||||||
#include <LibCore/LocalSocket.h>
|
#include <LibCore/Socket.h>
|
||||||
#include <fcntl.h>
|
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
|
@ -168,13 +167,13 @@ void Service::handle_socket_connection()
|
||||||
dbg() << "Ready to read on behalf of " << name();
|
dbg() << "Ready to read on behalf of " << name();
|
||||||
#endif
|
#endif
|
||||||
if (m_accept_socket_connections) {
|
if (m_accept_socket_connections) {
|
||||||
int accepted_fd = accept(m_socket_fd, nullptr, nullptr);
|
int accepted_fd = accept(m_socket_fd, nullptr, nullptr);
|
||||||
if (accepted_fd < 0) {
|
if (accepted_fd < 0) {
|
||||||
perror("accept");
|
perror("accept");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
spawn(accepted_fd);
|
spawn(accepted_fd);
|
||||||
close(accepted_fd);
|
close(accepted_fd);
|
||||||
} else {
|
} else {
|
||||||
remove_child(*m_socket_notifier);
|
remove_child(*m_socket_notifier);
|
||||||
m_socket_notifier = nullptr;
|
m_socket_notifier = nullptr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue