Close pipe in Wayland_ShowMessageBox
When closing message box by pressing escape, Zenity does not write to the pipe and fgets() get stuck waiting for EOF.
This commit is contained in:
committed by
Frank Praznik
parent
a2eb2697a3
commit
cac1434295
@@ -212,6 +212,7 @@ int Wayland_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *button
|
|||||||
FILE *outputfp = NULL;
|
FILE *outputfp = NULL;
|
||||||
char *output = NULL;
|
char *output = NULL;
|
||||||
char *tmp = NULL;
|
char *tmp = NULL;
|
||||||
|
close(fd_pipe[1]);
|
||||||
|
|
||||||
if (!buttonID) {
|
if (!buttonID) {
|
||||||
/* if we don't need buttonID, we can return immediately */
|
/* if we don't need buttonID, we can return immediately */
|
||||||
|
|||||||
Reference in New Issue
Block a user