mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Removed unrequired signals from handler
This commit is contained in:
parent
c6aa4ed1d6
commit
b4e3fe137b
@ -80,13 +80,10 @@ void yaffsSigHandler ( int sig)
|
||||
pios_trace(PIOS_TRACE_TEST, "yaffsSigHandler sig=%d", sig);
|
||||
switch (sig)
|
||||
{
|
||||
case SIGALRM:
|
||||
case SIGQUIT:
|
||||
case SIGTERM:
|
||||
case SIGKILL:
|
||||
case SIGINT:
|
||||
case SIGUSR1:
|
||||
case SIGUSR2:
|
||||
|
||||
for (fs_id =0; fs_id < pios_flash_device_count; fs_id++)
|
||||
{
|
||||
@ -129,6 +126,11 @@ void (*sighandler)(int sig)
|
||||
sa.sa_handler = sighandler;
|
||||
if (sigaction(SIGTERM, &sa, NULL)) return;
|
||||
|
||||
sigemptyset(&sa.sa_mask);
|
||||
sa.sa_flags = 0;
|
||||
sa.sa_handler = sighandler;
|
||||
if (sigaction(SIGKILL, &sa, NULL)) return;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user