--- mozplugger-2.1.3/mozplugger-helper.c~ 2013-02-18 19:42:08.000000000 +0000 +++ mozplugger-2.1.3/mozplugger-helper.c~ 2013-10-13 19:03:30.000000000 +0100 @@ -1532,7 +1532,7 @@ { handle_SIGCHLD_event(); } - if( FD_ISSET(rd_chld_fd, &fds)) + if( rd_chld_fd >= 0 && FD_ISSET(rd_chld_fd, &fds)) { handle_chld_out_event(rd_chld_fd); } --- mozplugger-2.1.3/mozplugger-controller.c~ 2013-02-18 19:42:08.000000000 +0000 +++ mozplugger-2.1.3/mozplugger-controller.c~ 2013-10-13 19:03:16.000000000 +0100 @@ -791,7 +791,7 @@ { handle_SIGCHLD_event(); } - if( FD_ISSET(rd_chld_fd, &fds)) + if( rd_chld_fd >= 0 && FD_ISSET(rd_chld_fd, &fds)) { handle_chld_out_event(rd_chld_fd); } --- mozplugger-2.1.3/mozplugger-linker.c~ 2013-02-18 19:42:08.000000000 +0000 +++ mozplugger-2.1.3/mozplugger-linker.c~ 2013-10-13 19:02:59.000000000 +0100 @@ -633,7 +633,7 @@ { handle_SIGCHLD_event(); } - if( FD_ISSET(rd_chld_fd, &fds)) + if( rd_chld_fd >= 0 && FD_ISSET(rd_chld_fd, &fds)) { handle_chld_out_event(rd_chld_fd); }