Received: by mail.netbsd.org (Postfix, from userid 605) id 286E214A0FB; Sun, 24 Apr 2011 20:17:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id EAE5B14A0F5 for ; Sun, 24 Apr 2011 20:17:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id T5gWUwzT2Wj5 for ; Sun, 24 Apr 2011 20:17:54 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 5CDA514A0E5 for ; Sun, 24 Apr 2011 20:17:54 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 3F960175DD; Sun, 24 Apr 2011 20:17:54 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Sun, 24 Apr 2011 20:17:54 +0000 From: "Mindaugas Rasiukevicius" Subject: CVS commit: src/sys To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20110424201754.3F960175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Mindaugas Rasiukevicius" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: rmind Date: Sun Apr 24 20:17:53 UTC 2011 Modified Files: src/sys/kern: kern_fork.c sys_mqueue.c src/sys/sys: mqueue.h Log Message: - Move some checks into mqueue_get() and avoid some duplication. - Simplify message queue descriptor unlinking and closure operations. - Update proc_t::p_mqueue_cnt atomically. Inherit it on fork(). - Use separate allocation for the name of message queue. To generate a diff of this commit: cvs rdiff -u -r1.180 -r1.181 src/sys/kern/kern_fork.c cvs rdiff -u -r1.31 -r1.32 src/sys/kern/sys_mqueue.c cvs rdiff -u -r1.12 -r1.13 src/sys/sys/mqueue.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.