core: Ensure we send SIGTERM only once to the zenity close dialog.

This commit is contained in:
Carlos Garnacho 2017-07-14 16:39:24 +02:00
parent f38c90961a
commit 2d8d9dea97

View File

@ -183,7 +183,10 @@ meta_close_dialog_default_hide (MetaCloseDialog *dialog)
} }
if (dialog_default->dialog_pid > -1) if (dialog_default->dialog_pid > -1)
kill (dialog_default->dialog_pid, SIGTERM); {
kill (dialog_default->dialog_pid, SIGTERM);
dialog_default->dialog_pid = -1;
}
} }
static void static void