sas Thu Oct 17 06:40:17 2002 EDT Modified files: /php4/ext/ircg ircg.c Log: A child process should not have access to IRCG's file descriptors. Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.136 php4/ext/ircg/ircg.c:1.137 --- php4/ext/ircg/ircg.c:1.136 Wed Sep 25 15:20:23 2002 +++ php4/ext/ircg/ircg.c Thu Oct 17 06:40:17 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ircg.c,v 1.136 2002/09/25 19:20:23 sas Exp $ */ +/* $Id: ircg.c,v 1.137 2002/10/17 10:40:17 sas Exp $ */ /* {{{ includes */ @@ -1331,6 +1331,14 @@ if (conn->file_fd == -1) { RETURN_FALSE; } + +#ifdef F_SETFD + if (fcntl(conn->file_fd, F_SETFD, 1)) { + close(conn->file_fd); + conn->file_fd = -1; + RETURN_FALSE; + } +#endif msg_replay_buffer(conn);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php