mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:32:44 +00:00 
			
		
		
		
	SystemServer: Put some debug spam behind #ifdefs
This commit is contained in:
		
							parent
							
								
									4dbbe1885f
								
							
						
					
					
						commit
						79d3c5723f
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		|  | @ -164,7 +164,9 @@ void Service::setup_notifier() | ||||||
| 
 | 
 | ||||||
| void Service::handle_socket_connection() | void Service::handle_socket_connection() | ||||||
| { | { | ||||||
|  | #ifdef SERVICE_DEBUG | ||||||
|     dbg() << "Ready to read on behalf of " << name(); |     dbg() << "Ready to read on behalf of " << name(); | ||||||
|  | #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) { | ||||||
|  | @ -192,7 +194,9 @@ void Service::activate() | ||||||
| 
 | 
 | ||||||
| void Service::spawn(int socket_fd) | void Service::spawn(int socket_fd) | ||||||
| { | { | ||||||
|  | #ifdef SERVICE_DEBUG | ||||||
|     dbg() << "Spawning " << name(); |     dbg() << "Spawning " << name(); | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
|     m_run_timer.start(); |     m_run_timer.start(); | ||||||
|     pid_t pid = fork(); |     pid_t pid = fork(); | ||||||
|  |  | ||||||
|  | @ -47,7 +47,10 @@ static void sigchld_handler(int) | ||||||
|     if (!pid) |     if (!pid) | ||||||
|         return; |         return; | ||||||
| 
 | 
 | ||||||
|  | #ifdef SYSTEMSERVER_DEBUG | ||||||
|     dbg() << "Reaped child with pid " << pid << ", exist status " << status; |     dbg() << "Reaped child with pid " << pid << ", exist status " << status; | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
|     Service* service = Service::find_by_pid(pid); |     Service* service = Service::find_by_pid(pid); | ||||||
|     if (service == nullptr) { |     if (service == nullptr) { | ||||||
|         // This can happen for multi-instance services.
 |         // This can happen for multi-instance services.
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling