Fixed SIGPIPE
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <assert.h>
|
||||
|
||||
#include <poll.h>
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <swebs/runner.h>
|
||||
@@ -42,6 +43,8 @@ void *runServer(RunnerArgs *args) {
|
||||
fds[0].fd = notify;
|
||||
fds[0].events = POLLIN;
|
||||
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
|
||||
for (;;) {
|
||||
int i;
|
||||
poll(fds, connCount, site->timeout);
|
||||
|
||||
Reference in New Issue
Block a user