mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-02 19:00:47 -04:00
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
|
static void
|
||||||
signal_cb(int fd, short event, void *arg)
|
signal_cb(int fd, short event, void *arg)
|
||||||
{
|
{
|
||||||
struct sigaction sa_ign;
|
|
||||||
struct sigaction sa_dfl;
|
|
||||||
struct signalfd_siginfo info;
|
struct signalfd_siginfo info;
|
||||||
int status;
|
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)
|
while (read(fd, &info, sizeof(struct signalfd_siginfo)) > 0)
|
||||||
{
|
{
|
||||||
switch (info.ssi_signo)
|
switch (info.ssi_signo)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user