From 7d84a6c9f39eb0df2e0a1c10231480e24984c4c7 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sun, 21 Jan 2024 00:23:20 -0800 Subject: [PATCH] Forgot to cleanup zombie processes --- src/wofi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wofi.c b/src/wofi.c index cb0f744..a849c0e 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -493,6 +493,7 @@ static GtkWidget* create_label(char* mode, char* text, char* search_text, char* if(pre_display_exec) { fclose(fp_labeltext); + while(waitpid(-1, NULL, WNOHANG) > 0); } else { pclose(fp_labeltext); }