Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 36938 invoked by uid 500); 11 Dec 2002 12:23:53 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 36927 invoked by uid 500); 11 Dec 2002 12:23:53 -0000 Delivered-To: apmail-apache-1.3-cvs@apache.org Date: 11 Dec 2002 12:23:53 -0000 Message-ID: <20021211122353.9868.qmail@icarus.apache.org> From: martin@apache.org To: apache-1.3-cvs@apache.org Subject: cvs commit: apache-1.3/src/main alloc.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N martin 2002/12/11 04:23:53 Modified: src/main alloc.c Log: Fix socket_magic_cleanup() to not dump core when invoked Revision Changes Path 1.133 +1 -1 apache-1.3/src/main/alloc.c Index: alloc.c =================================================================== RCS file: /home/cvs/apache-1.3/src/main/alloc.c,v retrieving revision 1.132 retrieving revision 1.133 diff -u -r1.132 -r1.133 --- alloc.c 8 Dec 2002 20:51:43 -0000 1.132 +++ alloc.c 11 Dec 2002 12:23:52 -0000 1.133 @@ -2027,7 +2027,7 @@ } static int socket_magic_cleanup(void *fpv) { - return ap_close_fd_on_exec(fileno((FILE *) fpv)); + return ap_close_fd_on_exec((int) (long) fpv)); } API_EXPORT(void) ap_note_cleanups_for_socket_ex(pool *p, int fd, int domagic)