Commit cd060707 authored by jan.koester's avatar jan.koester
Browse files

fixed sigpipe

parent edb4fd5e
Loading
Loading
Loading
Loading
+2 −1
Changes for src/linux/event.cpp: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <vector>
#include <thread>
#include <unistd.h>

#include <signal.h>
#include <sys/epoll.h>
#include <stdlib.h>
#include <stdint.h> 
@@ -342,6 +342,7 @@ namespace netplus {

    void event::runEventloop() {
        unsigned long thrs = sysconf(_SC_NPROCESSORS_ONLN);
        signal(SIGPIPE, SIG_IGN);
        initEventHandler();
    MAINWORKERLOOP: