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,400599f96e15af9b,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-31 02:36:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-stuttgart.de!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: GNAT: Setting SIGPIPE to SIG_IGN Date: Sat, 31 Aug 2002 11:36:04 +0200 Organization: Enyo -- not your organization Message-ID: <87ofbj5q0r.fsf@deneb.enyo.de> NNTP-Posting-Host: deneb.enyo.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: cygnus.enyo.de 1030786560 13404 212.9.189.171 (31 Aug 2002 09:36:00 GMT) X-Complaints-To: abuse@enyo.de NNTP-Posting-Date: 31 Aug 2002 09:36:00 GMT Cancel-Lock: sha1:PTjuc6t7UoRJroeqOV3zNWyXy4k= Xref: archiver1.google.com comp.lang.ada:28622 Date: 2002-08-31T09:36:00+00:00 List-Id: I want to instruct the GNAT run-time library that it sets the SIGPIPE handler to SIG_IGN, so that system calls such as read() return EPIPE instead of delivering a signal. This might sound like a silly question (I can write the necessary call to signal(2) myself), but I don't want to work around the GNAT run-time library. Any suggestions? The RM interfaces do not appear to be helpful here because I think that if no handler is attached, the default handler is invoked, which is not what I want.