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).
This commit is contained in:
parent
1b95182f20
commit
c86afb6bc0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user