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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f6ee8ca03c176d76 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-17 07:34:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.r-kom.de!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Alfred Hilscher Newsgroups: comp.lang.ada Subject: Re: stupid question: how can I finish a program? Date: Sat, 17 Aug 2002 16:28:29 +0200 Organization: T-Online Message-ID: <3D5E5D8D.7807B383@t-online.de> References: <3D59BB4C.AA21BDA@despammed.com> <5ee5b646.0208141747.1f108e20@posting.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1029594703 06 3758 T1pPbuMSGaPT0 020817 14:31:43 X-Complaints-To: abuse@t-online.com To: Michael Bode X-Sender: 320001779794-0001@t-dialin.net X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de Xref: archiver1.google.com comp.lang.ada:28173 Date: 2002-08-17T16:28:29+02:00 List-Id: Michael Bode schrieb: > > dewar@gnat.com (Robert Dewar) writes: > > > Seems redundant, just abort the environment task, that's > > the simplest suicide model. > > I had a similar problem, but my programm has a server task which most > of the time waits on blocking socket functions (Accept or String'Read > from a socket). Hi Michael, I had a similar problem. I solved as follows: I have an extra "shutdown-task" which is only responsible for "unblocking" the sockets by calling "WSACancelBlockingCall" (OK windows only, but I think there should be a similar function even on *x systems). This works fine, all blocking calls are unblocked with the return code WSAEINTR.