Skip to content

Commit

Permalink
Close pipe in Wayland_ShowMessageBox
Browse files Browse the repository at this point in the history
When closing message box by pressing escape, Zenity does not write to the pipe and fgets() get stuck waiting for EOF.
  • Loading branch information
meyraud705 authored and Kontrabant committed Apr 17, 2024
1 parent a2eb269 commit cac1434
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/wayland/SDL_waylandmessagebox.c
Expand Up @@ -212,6 +212,7 @@ int Wayland_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *button
FILE *outputfp = NULL;
char *output = NULL;
char *tmp = NULL;
close(fd_pipe[1]);

if (!buttonID) {
/* if we don't need buttonID, we can return immediately */
Expand Down

0 comments on commit cac1434

Please sign in to comment.