mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +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);
|
pios_trace(PIOS_TRACE_TEST, "yaffsSigHandler sig=%d", sig);
|
||||||
switch (sig)
|
switch (sig)
|
||||||
{
|
{
|
||||||
case SIGALRM:
|
|
||||||
case SIGQUIT:
|
case SIGQUIT:
|
||||||
case SIGTERM:
|
case SIGTERM:
|
||||||
case SIGKILL:
|
case SIGKILL:
|
||||||
case SIGINT:
|
case SIGINT:
|
||||||
case SIGUSR1:
|
|
||||||
case SIGUSR2:
|
|
||||||
|
|
||||||
for (fs_id =0; fs_id < pios_flash_device_count; fs_id++)
|
for (fs_id =0; fs_id < pios_flash_device_count; fs_id++)
|
||||||
{
|
{
|
||||||
@ -129,6 +126,11 @@ void (*sighandler)(int sig)
|
|||||||
sa.sa_handler = sighandler;
|
sa.sa_handler = sighandler;
|
||||||
if (sigaction(SIGTERM, &sa, NULL)) return;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user