diff --git a/flight/pios/posix/libraries/yaffs2/yaffscfg2k.c b/flight/pios/posix/libraries/yaffs2/yaffscfg2k.c index 05ed8fd6e..b6f08e75e 100644 --- a/flight/pios/posix/libraries/yaffs2/yaffscfg2k.c +++ b/flight/pios/posix/libraries/yaffs2/yaffscfg2k.c @@ -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; }