Fix fd leak if application forks

If the application forks, close the fd inherited from the parent.

Change-Id: I48e4157d5f0d6f04d07ecb23b719a23934687cdb
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Этот коммит содержится в:
Harish Kasiviswanathan
2017-06-30 15:55:40 -04:00
родитель 4d0697bf65
Коммит dc6ece67fd
+1
Просмотреть файл
@@ -68,6 +68,7 @@ static void clear_after_fork(void)
clear_events_page();
fmm_clear_all_mem();
destroy_device_debugging_memory();
close(kfd_fd);
kfd_open_count = 0;
}