From owner-cvs-all Tue Feb 5 17:55:16 2002 Delivered-To: cvs-all@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 4156E37B425; Tue, 5 Feb 2002 17:55:12 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id g161t2611382; Wed, 6 Feb 2002 04:55:02 +0300 (MSK) (envelope-from ache) Date: Wed, 6 Feb 2002 04:55:02 +0300 From: "Andrey A. Chernov" To: Alfred Perlstein Cc: "Daniel O'Connor" , cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, des@FreeBSD.org, Mark Murray Subject: Re: cvs commit: src/lib/libpam/modules/pam_unix pam_unix.c Message-ID: <20020206015502.GB11153@nagual.pp.ru> References: <20020205134833.T59017@elvis.mu.org> <20020205172633.B59017@elvis.mu.org> <20020206014927.GA11153@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020206014927.GA11153@nagual.pp.ru> User-Agent: Mutt/1.3.27i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 06, 2002 at 04:49:27 +0300, Andrey A. Chernov wrote: > On Tue, Feb 05, 2002 at 17:26:33 -0800, Alfred Perlstein wrote: > > > > > > No need to create one.. > > > setstate() returns the old state which can then be passed back to setstate(). > > > > Andrey, can you use this then? > > Yes, why not? From other hand, just reading Mike reply: we should care about threads too. Saving & restoring state is not good for threads because of application locking needed, but acr4random() is more nice since locking either not needed here or can be implemented inside function. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message