1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/graphics/gimp-app/files/patch-am
John Polstra c65897b39d Add patches to call fpsetmask(0) at startup time, for gimp itself
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.
1998-05-19 03:16:48 +00:00

20 lines
381 B
Plaintext

--- libgimp/gimp.c.orig Sun Apr 12 22:40:51 1998
+++ libgimp/gimp.c Sun May 17 11:00:26 1998
@@ -19,6 +19,7 @@
#include "config.h"
#include <errno.h>
+#include <floatingpoint.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
@@ -84,6 +85,8 @@
}
progname = argv[0];
+
+ fpsetmask(0);
signal (SIGHUP, gimp_signal);
signal (SIGINT, gimp_signal);