summaryrefslogtreecommitdiff
path: root/src/progress.c
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2003-05-24 01:36:24 +0000
committerGlynn Foster <gman@src.gnome.org>2003-05-24 01:36:24 +0000
commit1acd9cfed892c8a277199912d099f7c5ff7a94ca (patch)
tree6c20990f22220513382924987e3448ed0a09554c /src/progress.c
parent1930a4a763d2136ea41fbdb6daa4249853b950d2 (diff)
Patch from Dagmar d'Surreal <dagmar@speakeasy.net> to correct help docs
2003-05-24 Glynn Foster <glynn.foster@sun.com> * help/C/zenity.xml: Patch from Dagmar d'Surreal <dagmar@speakeasy.net> to correct help docs and script examples for the change from --dialog-title to --title. * THANKS, src/about.c: Add Dagmar. * src/progress.c: For now, just send a SIGHUP to the parent process - not entirely sure if this is the best thing to do right now.
Diffstat (limited to 'src/progress.c')
-rw-r--r--src/progress.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/progress.c b/src/progress.c
index aad133a..f7444c4 100644
--- a/src/progress.c
+++ b/src/progress.c
@@ -212,8 +212,11 @@ zenity_progress_dialog_response (GtkWidget *widget, int response, gpointer data)
break;
case GTK_RESPONSE_CANCEL:
- /* FIXME: This should kill off the parent process - not entirely sure how to achieve this */
- kill (0);
+ /* FIXME: This should kill off the parent process nicely and return an error code
+ * I'm pretty sure there is a nice way to do this, but I'm clueless about this
+ * stuff. Should be using SIGHUP instead of 1 though.
+ */
+ kill (getpid (), 1);
zen_data->exit_code = 1;
gtk_main_quit ();
break;