Ahem, use non blocking IO. silly me.
[apps/pfixtools.git] / srsd.c
diff --git a/srsd.c b/srsd.c
index b79be36..26280de 100644 (file)
--- a/srsd.c
+++ b/srsd.c
@@ -262,7 +262,7 @@ int main_loop(srs_t *srs, const char *domain, int port_enc, int port_dec)
                 srsd_t *tmp;
                 int sock;
 
-                sock = accept(srsd->fd, NULL, NULL);
+                sock = accept_nonblock(srsd->fd);
                 if (sock < 0) {
                     UNIXERR("accept");
                     continue;