mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
c65897b39d
and for the plug-ins. Linux defaults to this (I think), but FreeBSD does not. Thus SIGFPEs happen at inopportune times under FreeBSD. GIMP catches the signals, but prompts at the standard input asking what to do about them. On my system, I start GIMP from a window manager menu, and this prompt to standard input caused the window manager and every child of it to enter the STOPPED state. Not nice at all. Why the other processes got stopped too, I don't understand.
27 lines
613 B
Plaintext
27 lines
613 B
Plaintext
--- app/main.c.orig Mon Apr 20 18:19:27 1998
|
|
+++ app/main.c Sun May 17 10:33:39 1998
|
|
@@ -16,6 +16,7 @@
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
#include "config.h"
|
|
+#include <floatingpoint.h>
|
|
#include <locale.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
@@ -80,10 +81,15 @@
|
|
int i, j;
|
|
gchar *display_name, *display_env;
|
|
|
|
+#define ATEXIT(proc) (atexit (proc))
|
|
+
|
|
ATEXIT (g_mem_profile);
|
|
|
|
/* Initialize variables */
|
|
prog_name = argv[0];
|
|
+
|
|
+ /* Ignore floating point exceptions */
|
|
+ fpsetmask(0);
|
|
|
|
/* Initialize Gtk toolkit */
|
|
gtk_set_locale ();
|