From 3c8d9e4f546a995bc70563fbf348cba94c36edb9 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sun, 7 Nov 2010 23:19:16 +0100 Subject: [PATCH] Nog een poging... --- Connector_RTMP/main.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Connector_RTMP/main.cpp b/Connector_RTMP/main.cpp index c6ae15c9..8f8d1ac7 100644 --- a/Connector_RTMP/main.cpp +++ b/Connector_RTMP/main.cpp @@ -5,7 +5,8 @@ #include #include #include - +#include +#include //for connection to server #include "../sockets/SocketW.h" @@ -22,12 +23,10 @@ FILE * CONN = 0; int main(){ - //automatic child reaping - struct sigaction sa = {sa_handler = SIG_IGN}; - sigaction(SIGCHLD, &sa, NULL); - int server_socket = DDV_Listen(1935); + int status; while (server_socket > 0){ + waitpid((pid_t)-1, &status, WNOHANG); CONN = DDV_Accept(server_socket); pid_t myid = fork(); if (myid == 0){