diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-22 21:18:55 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-22 21:18:55 +0200 |
commit | 79d3c5723f421a11dbc025019a671bc87b002d9d (patch) | |
tree | 8bf1f2bdbde3b4aa894c11df2dd123263391fd55 | |
parent | 4dbbe1885fe0ed8d203f0eaa22bfb14da0d71ace (diff) | |
download | serenity-79d3c5723f421a11dbc025019a671bc87b002d9d.zip |
SystemServer: Put some debug spam behind #ifdefs
-rw-r--r-- | Services/SystemServer/Service.cpp | 4 | ||||
-rw-r--r-- | Services/SystemServer/main.cpp | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Services/SystemServer/Service.cpp b/Services/SystemServer/Service.cpp index cb106e1e91..5fd4b7e775 100644 --- a/Services/SystemServer/Service.cpp +++ b/Services/SystemServer/Service.cpp @@ -164,7 +164,9 @@ void Service::setup_notifier() void Service::handle_socket_connection() { +#ifdef SERVICE_DEBUG 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) { @@ -192,7 +194,9 @@ void Service::activate() void Service::spawn(int socket_fd) { +#ifdef SERVICE_DEBUG dbg() << "Spawning " << name(); +#endif m_run_timer.start(); pid_t pid = fork(); diff --git a/Services/SystemServer/main.cpp b/Services/SystemServer/main.cpp index fe355807ec..10cf54c9c0 100644 --- a/Services/SystemServer/main.cpp +++ b/Services/SystemServer/main.cpp @@ -47,7 +47,10 @@ static void sigchld_handler(int) if (!pid) return; +#ifdef SYSTEMSERVER_DEBUG dbg() << "Reaped child with pid " << pid << ", exist status " << status; +#endif + Service* service = Service::find_by_pid(pid); if (service == nullptr) { // This can happen for multi-instance services. |