Kill dead variables in signal_cb()
This commit is contained in:
parent
fc971974f0
commit
5887cc2e27
10
src/main.c
10
src/main.c
|
@ -289,19 +289,9 @@ register_services(char *ffid, int no_rsp, int no_daap)
|
|||
static void
|
||||
signal_cb(int fd, short event, void *arg)
|
||||
{
|
||||
struct sigaction sa_ign;
|
||||
struct sigaction sa_dfl;
|
||||
struct signalfd_siginfo info;
|
||||
int status;
|
||||
|
||||
sa_ign.sa_handler = SIG_IGN;
|
||||
sa_ign.sa_flags = 0;
|
||||
sigemptyset(&sa_ign.sa_mask);
|
||||
|
||||
sa_dfl.sa_handler = SIG_DFL;
|
||||
sa_dfl.sa_flags = 0;
|
||||
sigemptyset(&sa_dfl.sa_mask);
|
||||
|
||||
while (read(fd, &info, sizeof(struct signalfd_siginfo)) > 0)
|
||||
{
|
||||
switch (info.ssi_signo)
|
||||
|
|
Loading…
Reference in New Issue