Technical support > Mac
Disabling the signal handler
Mattn:
--- Code: ---@@ -524,6 +522,8 @@
#ifdef HAVE_CURSES
signal(SIGWINCH, Sys_Signal);
#endif
+ /* apple provides a nice backtrace feature on their own */
+#if !(defined (__APPLE__) || defined (MACOSX))
signal(SIGHUP, Sys_Signal);
signal(SIGINT, Sys_Signal);
signal(SIGQUIT, Sys_Signal);
@@ -532,4 +532,5 @@
signal(SIGFPE, Sys_Signal);
signal(SIGSEGV, Sys_Signal);
signal(SIGTERM, Sys_Signal);
+#endif
}
--- End code ---
Please try this patch and let me know whether that works for you.
keybounce:
--- Code: ---Kleiman-ibook:unix michael$ pbpaste | patch
missing header for unified diff at line 1 of patch
can't find file to patch at input line 1
Perhaps you should have used the -p or --strip option?
File to patch: unix_main.c
patching file unix_main.c
Hunk #1 succeeded at 518 (offset -4 lines).
patch unexpectedly ends in middle of line
Hunk #2 FAILED at 528.
1 out of 2 hunks FAILED -- saving rejects to file unix_main.c.rej
Kleiman-ibook:unix michael$
--- End code ---
Manually adjusting ...
Here's what I have compared to the trunk:
--- Code: ---Kleiman-ibook:trunk michael$ svn diff
Index: src/ports/unix/unix_main.c
===================================================================
--- src/ports/unix/unix_main.c (revision 23646)
+++ src/ports/unix/unix_main.c (working copy)
@@ -520,6 +520,8 @@
#ifdef HAVE_CURSES
signal(SIGWINCH, Sys_Signal);
#endif
+ /* apple provides a nice backtrace feature on their own */
+#if !(defined (__APPLE__) || defined (MACOSX))
signal(SIGHUP, Sys_Signal);
signal(SIGINT, Sys_Signal);
signal(SIGQUIT, Sys_Signal);
@@ -528,4 +530,5 @@
signal(SIGFPE, Sys_Signal);
signal(SIGSEGV, Sys_Signal);
signal(SIGTERM, Sys_Signal);
+#endif
}
Index: build/maps.mk
===================================================================
--- build/maps.mk (revision 23646)
+++ build/maps.mk (working copy)
@@ -32,7 +32,8 @@
endif
NICE = 19
-UFO2MAPFLAGS = -v 2 -nice $(NICE) -extra -t $(NUMTHREADS)
+# UFO2MAPFLAGS = -v 2 -nice $(NICE) -extra -t $(NUMTHREADS)
+UFO2MAPFLAGS = -nice $(NICE) -extra -t $(NUMTHREADS)
FAST_UFO2MAPFLAGS = -v 2 -quant 6 -nice $(NICE) -t $(NUMTHREADS)
ENTS_UFO2MAPFLAGS = -v 2 -nice $(NICE) -onlyents
--- End code ---
Full clean compile, including maps, ...
Mattn:
looks ok - maybe the forum cut the last newline from my patch.
is it working that way? if yes - then i will think about a cleaner way to handle this.
Navigation
[0] Message Index
[*] Previous page
Go to full version