From owner-cvs-src-old@FreeBSD.ORG Wed Sep 22 19:03:20 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 645AC1065670 for ; Wed, 22 Sep 2010 19:03:20 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 53E088FC26 for ; Wed, 22 Sep 2010 19:03:20 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o8MJ3KIN048908 for ; Wed, 22 Sep 2010 19:03:20 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o8MJ3KFv048907 for cvs-src-old@freebsd.org; Wed, 22 Sep 2010 19:03:20 GMT (envelope-from pjd@repoman.freebsd.org) Message-Id: <201009221903.o8MJ3KFv048907@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to pjd@repoman.freebsd.org using -f From: Pawel Jakub Dawidek Date: Wed, 22 Sep 2010 19:03:11 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/hastd primary.c secondary.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2010 19:03:20 -0000 pjd 2010-09-22 19:03:11 UTC FreeBSD src repository Modified files: sbin/hastd primary.c secondary.c Log: SVN rev 213007 on 2010-09-22 19:03:11Z by pjd Fix possible deadlock where worker process sends an event to the main process while the main process sends control message to the worker process, but worker process hasn't started control thread yet, because it waits for reply from the main process. The fix is to start the control thread before sending any events. Reported and fix suggested by: Mikolaj Golub MFC after: 3 days Revision Changes Path 1.30 +12 -4 src/sbin/hastd/primary.c 1.15 +14 -4 src/sbin/hastd/secondary.c