The GNAT tasking runtimes using a signal (SIGADAABRT) for asynchronous task abortion. On most platforms, SIGADAABRT is SIGABRT, but Darwin used to use SIGTERM for that purpose. This change makes Darwin consistent with the majority of platforms. This allows tasking programs to install their own handler for SIGTERM (^C).
Tested on x86_64-pc-linux-gnu, committed on trunk 2011-09-19 Thomas Quinot <qui...@adacore.com> * s-osinte-darwin.ads: Change SIGADAABRT on Darwin to SIGABRT.
Index: s-osinte-darwin.ads =================================================================== --- s-osinte-darwin.ads (revision 178955) +++ s-osinte-darwin.ads (working copy) @@ -108,7 +108,7 @@ SIGUSR1 : constant := 30; -- user defined signal 1 SIGUSR2 : constant := 31; -- user defined signal 2 - SIGADAABORT : constant := SIGTERM; + SIGADAABORT : constant := SIGABRT; -- Change this if you want to use another signal for task abort. -- SIGTERM might be a good one.