From owner-cvs-ports@FreeBSD.ORG Sat Jul 2 19:17:43 2005 Return-Path: X-Original-To: cvs-ports@FreeBSD.org Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 179A316A41C; Sat, 2 Jul 2005 19:17:43 +0000 (GMT) (envelope-from marcus@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06CF843D49; Sat, 2 Jul 2005 19:17:43 +0000 (GMT) (envelope-from marcus@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j62JHgPn009573; Sat, 2 Jul 2005 19:17:42 GMT (envelope-from marcus@repoman.freebsd.org) Received: (from marcus@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j62JHgYq009572; Sat, 2 Jul 2005 19:17:42 GMT (envelope-from marcus) Message-Id: <200507021917.j62JHgYq009572@repoman.freebsd.org> From: Joe Marcus Clarke Date: Sat, 2 Jul 2005 19:17:42 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/devel/dbus Makefile ports/devel/dbus/files patch-bus_dir-watch.c X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2005 19:17:43 -0000 marcus 2005-07-02 19:17:42 UTC FreeBSD ports repository Modified files: devel/dbus Makefile devel/dbus/files patch-bus_dir-watch.c Log: Fix a CPU hog problem with dbus running in fork mode. Kqueue is not shared across fork(), and thus the file descriptor kevent was trying to read from was actually pointign to /dev/null. This caused dbus to eat up 100% of the CPU. Of course, tests with --nofork worked just fine. The new approach will detect if the kqueue has been closed, a reopen it after the fork. Revision Changes Path 1.25 +1 -1 ports/devel/dbus/Makefile 1.2 +15 -4 ports/devel/dbus/files/patch-bus_dir-watch.c