Re: [PATCH] signal.7: Better description for SIGFPE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Vincent,

On Tue, Sep 24, 2024 at 01:54:46PM +0200, Vincent Lefevre wrote:
> SIGFPE has comment "Floating-point exception", which corresponds to
> the FPE acronym. But this is misleading as this signal may also be
> generated by an integer division by 0.
> 
> Change it to "Erroneous arithmetic operation" from POSIX:
> https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html
> 
> Note: the GNU C Library manual says "fatal arithmetic error".
> https://www.gnu.org/software/libc/manual/html_node/Program-Error-Signals.html
> 
> Signed-off-by: Vincent Lefevre <vincent@xxxxxxxxxx>

Patch applied.  Thanks!

Have a lovely day!
Alex

> ---
>  man/man7/signal.7 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man/man7/signal.7 b/man/man7/signal.7
> index 7a9e91cc7..d19f171b3 100644
> --- a/man/man7/signal.7
> +++ b/man/man7/signal.7
> @@ -373,7 +373,7 @@ SIGCHLD	P1990	Ign	Child stopped or terminated
>  SIGCLD	\-	Ign	A synonym for \fBSIGCHLD\fP
>  SIGCONT	P1990	Cont	Continue if stopped
>  SIGEMT	\-	Term	Emulator trap
> -SIGFPE	P1990	Core	Floating-point exception
> +SIGFPE	P1990	Core	Erroneous arithmetic operation
>  SIGHUP	P1990	Term	Hangup detected on controlling terminal
>  			or death of controlling process
>  SIGILL	P1990	Core	Illegal Instruction
> -- 
> 2.45.2
> 
> 

-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux