Use signal instead of sigignore as the latter is deprecated
This commit is contained in:
@@ -108,7 +108,7 @@ int main(int argc, char **argv)
|
|||||||
cerr_buffer = std::cerr.rdbuf();
|
cerr_buffer = std::cerr.rdbuf();
|
||||||
std::cerr.rdbuf(errorlog.rdbuf());
|
std::cerr.rdbuf(errorlog.rdbuf());
|
||||||
|
|
||||||
sigignore(SIGPIPE);
|
signal(SIGPIPE, SIG_IGN);
|
||||||
signal(SIGWINCH, sighandler);
|
signal(SIGWINCH, sighandler);
|
||||||
|
|
||||||
Mpd.setNoidleCallback(Status::update);
|
Mpd.setNoidleCallback(Status::update);
|
||||||
|
|||||||
Reference in New Issue
Block a user