From c86afb6bc00fa7bd8c6ce184f3d6752266960182 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Sun, 15 Feb 1998 00:46:47 +0000 Subject: [PATCH] signal() returns SIG_ERR, not just -1. The sys/signal.h header file provides the cast from -1 to the signal() return type, so no further casting by programmers should be required. Pointed out by: bde (of course). --- lib/libc/gen/signal.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/gen/signal.3 b/lib/libc/gen/signal.3 index 90faadcf5147..9960e4aba1a5 100644 --- a/lib/libc/gen/signal.3 +++ b/lib/libc/gen/signal.3 @@ -194,7 +194,7 @@ function; ignored signals remain ignored. .Sh RETURN VALUES The previous action is returned on a successful call. -Otherwise, \-1 is returned and the global variable +Otherwise, SIG_ERR is returned and the global variable .Va errno is set to indicate the error. .Sh ERRORS