From 9540ef1af1e2b7c40a72f0c2e25f957b018500a7 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Fri, 19 Apr 2024 12:02:52 +0600 Subject: [PATCH] zombie processes fix --- source/libublsettingsui-gtk3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/libublsettingsui-gtk3.c b/source/libublsettingsui-gtk3.c index bcb211a..584fc3d 100644 --- a/source/libublsettingsui-gtk3.c +++ b/source/libublsettingsui-gtk3.c @@ -174,6 +174,7 @@ void _yon_saving_threaded(char *final_command){ FILE *file = popen(final_command,"r"); int file_save; config_str file_return = yon_config_load_file(file,&file_save); + fclose(file); file_return = yon_char_parsed_append(file_return,&file_save,final_command); if (save_success_function) { @@ -301,7 +302,7 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){ if (!strstr(file,".ini")) file = yon_char_append(file,".ini"); if (access(file,0)!=F_OK){ char *command_creation = ubconfig_file_create(file); - system(command_creation); + int a = system(command_creation); if (access(file,0)!=F_OK){ yon_ubl_status_box_render(CUSTOM_CONFIG_CREATION_ERROR_LABEL,BACKGROUND_IMAGE_FAIL_TYPE); return NULL;