🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.unix
Article #951

return from a signal-catching function

#951
From: Mike Wulkan
Date: Fri, 21 Feb 1992 20:55
26 lines
1926 bytes
Submitted-by: WULKAN@TOROLAB6.VNET.IBM.COM (Mike Wulkan)

I have a question as to the intent of the following statement in section
3.3.1.3 of 1003.1:

  521 (c) The behavior of a process is undefined after it returns normally
  522     from a signal-catching function for a SIGFPE, SIGILL, or SIGSEGV
  523     signal that was not generated by the kill() function or the raise()
  524     function defined by the C Standard {2}.

whereas the ANSI C Standard states in section 4.7.1.1:

  ...  If func executes a return statement and the value of sig was
  SIGFPE or any other implementation-defined value corresponding to a
  computational exception, the behavior is undefined. ...

Is the intent of Posix to "limit" the scope of "other
implementation-defined value" to exactly SIGFPE, SIGILL and SIGSEGV?

Or is Posix simply extending the list to include SIGILL and SIGSEGV
while still allowing for other implementation-defined values?

Mike Wulkan


Volume-Number: Volume 27, Number 3
Technical Details
Message-ID: <1992Feb22.073722.18969@uunet.uu.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
Received: from rodan.UU.NET by ftp.UU.NET with SMTP 
 (5.61/UUNET-guest-mail-drop) id AA23815; Sat, 22 Feb 92 02:51:05 -0500
Received: from relay2.UU.NET by rodan.UU.NET with SMTP 
 (5.61/UUNET-mail-drop) id AA25329; Sat, 22 Feb 92 02:50:14 -0500
Received: from kithrup.COM by relay2.UU.NET with SMTP 
 (5.61/UUNET-internet-primary) id AA16421; Sat, 22 Feb 92 02:50:12 -0500
Newsgroups: comp.std.unix
From: Mike Wulkan <WULKAN@torolab6.vnet.ibm.com>
Subject:       return from a signal-catching function
Message-ID: <1992Feb22.073722.18969@uunet.uu.net>
Originator: sef@ftp.UU.NET
Nntp-Posting-Host: ftp.uu.net
X-Submissions: std-unix@uunet.uu.net
Organization: UUNET Communications Services
Date: Fri, 21 Feb 1992 20:55:50 GMT
Reply-To: std-unix@uunet.UU.NET
To: std-unix@uunet.UU.NET
Sender: Network News <news@kithrup.com>
Source-Info:  From (or Sender) name not authenticated.
Status: R