mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:42:44 +00:00 
			
		
		
		
	WindowServer: Port to socket takeover
This commit is contained in:
		
							parent
							
								
									c9e21b2bcc
								
							
						
					
					
						commit
						22a05621d5
					
				
					 3 changed files with 4 additions and 3 deletions
				
			
		|  | @ -27,8 +27,8 @@ WSEventLoop::WSEventLoop() | |||
|     m_keyboard_fd = open("/dev/keyboard", O_RDONLY | O_NONBLOCK | O_CLOEXEC); | ||||
|     m_mouse_fd = open("/dev/psaux", O_RDONLY | O_NONBLOCK | O_CLOEXEC); | ||||
| 
 | ||||
|     unlink("/tmp/wsportal"); | ||||
|     m_server->listen("/tmp/wsportal"); | ||||
|     bool ok = m_server->take_over_from_system_server(); | ||||
|     ASSERT(ok); | ||||
| 
 | ||||
|     m_server->on_ready_to_accept = [this] { | ||||
|         auto client_socket = m_server->accept(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sergey Bugaev
						Sergey Bugaev