Patch by Vasilis Kaoutsis: Removed redundant parameter check (sigaction()
does it anyway). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22830 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8ae2f054c7
commit
a56a0c276a
@ -4,23 +4,12 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <syscalls.h>
|
||||
|
||||
|
||||
int
|
||||
sigignore(int signal)
|
||||
{
|
||||
// check for invalid signals or for signals
|
||||
// that can not be ignored (SIGKILL, SIGSTOP)
|
||||
if (signal <= 0 || signal >= NSIG || signal == SIGKILL
|
||||
|| signal == SIGSTOP) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
struct sigaction ignoreSignalAction;
|
||||
// create an action to ignore the signal
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user