Patchwork [Ada] Change SIGADAABRT to SIGABRT on Darwin

login
register
mail settings
Submitter Arnaud Charlet
Date Sept. 19, 2011, 9:04 a.m.
Message ID <20110919090401.GA25845@adacore.com>
Download mbox | patch
Permalink /patch/115308/
State New
Headers show

Comments

Arnaud Charlet - Sept. 19, 2011, 9:04 a.m.
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  <quinot@adacore.com>

	* s-osinte-darwin.ads: Change SIGADAABRT on Darwin to SIGABRT.

Patch

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.