Date: Wed, 6 Feb 2002 04:55:02 +0300 From: "Andrey A. Chernov" <ache@nagual.pp.ru> To: Alfred Perlstein <bright@mu.org> Cc: "Daniel O'Connor" <doconnor@gsoft.com.au>, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, des@FreeBSD.org, Mark Murray <mark@grondar.za> Subject: Re: cvs commit: src/lib/libpam/modules/pam_unix pam_unix.c Message-ID: <20020206015502.GB11153@nagual.pp.ru> In-Reply-To: <20020206014927.GA11153@nagual.pp.ru> References: <20020205134833.T59017@elvis.mu.org> <XFMail.20020206115521.doconnor@gsoft.com.au> <20020205172633.B59017@elvis.mu.org> <20020206014927.GA11153@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020206015502.GB11153>