Commit 30d9589c authored by Warren Dukes's avatar Warren Dukes

fix some snafoos

git-svn-id: https://svn.musicpd.org/mpd/trunk@678 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 4844e05e
......@@ -30,6 +30,7 @@
#include "interface.h"
#include "volume.h"
#include "mpd_types.h"
#include "sig_handlers.h"
#include <string.h>
#include <sys/types.h>
......@@ -130,6 +131,7 @@ int updateInit(FILE * fp) {
sigaction(SIGPIPE,&sa,NULL);
sigaction(SIGCHLD,&sa,NULL);
finishSigHandlers();
close(listenSocket);
freeAllInterfaces();
finishPlaylist();
......
......@@ -141,7 +141,6 @@ void initPlaylist() {
}
void finishPlaylist() {
clearPlaylist(stderr);
free(playlist.songs);
playlist.songs = NULL;
free(playlist.order);
......
......@@ -63,9 +63,6 @@ void initSigHandlers() {
sigaction(SIGPIPE,&sa,NULL);
sa.sa_handler = usr1SigHandler;
sigaction(SIGUSR1,&sa,NULL);
sigaddset(&sa.sa_mask,SIGTERM);
sigaddset(&sa.sa_mask,SIGHUP);
sigaddset(&sa.sa_mask,SIGCHLD);
sa.sa_handler = chldSigHandler;
sigaction(SIGCHLD,&sa,NULL);
sa.sa_handler = hupSigHandler;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment