From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3d824959ef461baa X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-22 01:58:28 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!opentransit.net!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.clear.net.nz!news.clear.net.nz.POSTED!not-for-mail NNTP-Posting-Date: Wed, 22 Oct 2003 03:58:25 -0500 From: Craig Carey Newsgroups: comp.lang.ada Subject: Re: task blocked using GNATSOCKETS Date: Wed, 22 Oct 2003 21:58:17 +1300 Message-ID: References: <383snvonam93meek6vsrbqsr35j4kbdnem@4ax.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Organization: Customer of Mercury Telecommunications Ltd Cache-Post-Path: drone5.qsi.net.nz!unknown@tnt1-170.quicksilver.net.nz X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) X-Original-NNTP-Posting-Host: drone5-svc-skyt.qsi.net.nz X-Original-Trace: 22 Oct 2003 21:58:36 +1300, drone5-svc-skyt.qsi.net.nz NNTP-Posting-Host: 203.97.37.6 X-Trace: sv3-WDl9Wmrbe074MZXSifISMp+9dRmUDzybXJNAHg6NSxcBfyoEEFKJZ76Pv/hwJlHV/NGH0m8YHO8YWyj!i2RzW/JjHWuAKBoh7XXcRvVvyCrJPfcvGklvxSfpU8leRCBFiDSDyuJ/P8N5kqfgOnG/FTaKX20S!FSGxkEA= X-Complaints-To: Complaints to abuse@clear.net.nz X-DMCA-Complaints-To: Complaints to abuse@clear.net.nz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:1388 Date: 2003-10-22T21:58:17+13:00 List-Id: An update to the GCC GNAT Ada 95 compiler (gcc.gnu.org) occurred on 20-21 October 2003. Now "pragma Interrupt_State". So perhaps now the whole program will die when Ctrl-C or 'kill -TERM' is done, in Linux. (I didn't check). On Sat, 04 Oct 2003 13:03:53 +1200, Craig Carey wrote: >On Fri, 3 Oct 2003 11:52:27 +0200, "Riccardo Fulcoli" wrote: ... >>"raised GNAT.SOCKETS.SOCKET_ERROR : [125] Address already in use" ... [Setting SO_REUSEADDR fixes locked-up sockets problems in Linux/BSD] ... >Zombie Ada program fragments ... ... > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9480 The bug report is on how kill -TERM does not kill all the pieces of a GNAT Ada program in Linux (and *BSD). > >| FYI, in the ACT GNATpro version 5.00a, there is a new pragma >| Interrupt_State which fixes this problem. >| >| When that pragma is inserted as shown below, the tasking program >| can be killed via the TERM signal as expected: >| >| procedure Sigterm is >| pragma Unreserve_All_Interrupts; >| pragma Interrupt_State (SIGTERM, System); -- insert this line > Getting GCC Ada using rsync (this excludes many non-Ada files): rsync -RPvacz --include '/gcc/gcc/ada' --exclude '/*/*/*' rsync://gcc.gnu.org/gcc-cvs . -~ Craig Carey