Skip to content

Commit

Permalink
ignore pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
benapetr committed Jan 16, 2015
1 parent 5f5d293 commit 3e23f75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xmlrcsd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <string>
#include <stdexcept>
#include <unistd.h>
#include <signal.h>
#include <pthread.h>
#include <time.h>
#include "configuration.hpp"
Expand Down Expand Up @@ -95,6 +96,8 @@ int main(int argc, char *argv[])
{
try
{
// ignore broken pipes
signal(SIGPIPE, SIG_IGN);
if (argc > 1 && std::string("-d") == argv[1])
{
Configuration::daemon = true;
Expand Down

0 comments on commit 3e23f75

Please # to comment.