Fix issue close file descriptor again that has been already closed. 06/223506/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 30 Jan 2020 10:05:32 +0000 (19:05 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 30 Jan 2020 10:12:04 +0000 (19:12 +0900)
Handler 'fd' is passed to a function at ecore_socket_panel_agent_module.cpp:1804
by calling function 'close' after the handler is closed again at
ecore_socket_panel_agent_module.cpp:1742 by passing as 1st parameter to function
'scim::EcoreSocketPanelAgent::filter_exception_event'
at ecore_socket_panel_agent_module.cpp:1803.

Change-Id: If8af3659a2c05c7f8691b41b0674e32f2573e48a
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
ism/modules/panelagent/ecoresocket/ecore_socket_panel_agent_module.cpp

index 95ec262..7279408 100644 (file)
@@ -1801,7 +1801,6 @@ private:
 
         std::cerr << "panel_agent_handler () has received exception event!!!\n";
         _agent->filter_exception_event(fd);
-        ::close (fd);
         ecore_main_fd_handler_del(fd_handler);
 
         ISF_SAVE_LOG("Received exception event (fd=%d)!!!", fd);