[SAMBA-TNG] using and createing libsmb and libmsrpc
vorlon at netexpress.net
Fri Jan 21 21:57:54 GMT 2000
On Fri, 21 Jan 2000, Cole, Timothy D. wrote:
> > > hey, pams aren't reentrant, are they?
> > They can be. I've seen some that weren't. I won't guarantee that
> > pam_smbpass
> > is reentrant, either, since when I started work on it, I didn't know how
> > to
> > write reentrant code. :) Probably something I should work on cleaning up.
> Basically don't use global or static local variables, and don't use
> any non-reentrant library calls (i.e. any that return a pointer to a static
> buffer somewhere that gets filled in by each call), and you should be most
> of the way there.
Yes, but I didn't know all that back /then/. :)
> As a bonus, reentrancy gets you most of the way to thread-saftey,
More information about the samba-technical