Revision: 504 Author: eht16 Date: 2006-06-29 10:10:17 -0700 (Thu, 29 Jun 2006) ViewCVS: http://svn.sourceforge.net/geany/?rev=504&view=rev
Log Message: ----------- Ignore SIGPIPE to prevent crashes when running external programs.
Modified Paths: -------------- trunk/ChangeLog trunk/src/main.c Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-06-29 16:55:29 UTC (rev 503) +++ trunk/ChangeLog 2006-06-29 17:10:17 UTC (rev 504) @@ -11,6 +11,8 @@ * src/geany.h, src/build.c, src/callbacks.c, src/keyfile.c, src/utils.c, src/prefs.c: Renamed tools settings from build_* in tools_*. + * src/main.c: + Ignore SIGPIPE to prevent crashes when running external programs.
2006-06-28 Enrico Tröger enrico.troeger@uvena.de
Modified: trunk/src/main.c =================================================================== --- trunk/src/main.c 2006-06-29 16:55:29 UTC (rev 503) +++ trunk/src/main.c 2006-06-29 17:10:17 UTC (rev 504) @@ -307,6 +307,7 @@ app->sensitive_buttons[29] = lookup_widget(app->window, "toolbutton25"); app->sensitive_buttons[30] = lookup_widget(app->window, "entry_goto_line"); app->sensitive_buttons[31] = lookup_widget(app->window, "treeview6"); + app->sensitive_buttons[32] = lookup_widget(app->window, "print1"); app->redo_items[0] = lookup_widget(app->popup_menu, "redo1"); app->redo_items[1] = lookup_widget(app->window, "menu_redo2"); app->undo_items[0] = lookup_widget(app->popup_menu, "undo1"); @@ -458,6 +459,10 @@ gtk_set_locale();
signal(SIGTERM, signal_cb); +#ifdef G_OS_UNIX + /* ignore SIGPIPE signal for preventing sudden death of program */ + signal(SIGPIPE, SIG_IGN); +#endif
if (alternate_config) config_dir = g_strdup(alternate_config); else config_dir = g_strconcat(GEANY_HOME_DIR, G_DIR_SEPARATOR_S, ".", PACKAGE, NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.