C/C++ API for GnuPG

Werner Koch wk@gnupg.org
Tue Apr 22 11:15:08 2003

On Mon, 21 Apr 2003 16:05:39 -0600, Joseph Bruni said:

>> Hey, what's this (cvs annotate output):
>> 1.1          (wkoch    24-Jan-00):     err = mlock( p, n );
>> 1.1          (wkoch    24-Jan-00):      err = errno;

That is bracketed with HAVE_BROKEN_MLOCK:

 # Check whether mlock is broken (hpux 10.20 raises a SIGBUS if mlock
 # is not called from uid 0

so in this case we only do an mlock if we are running under euid 0. 

  Nonviolence is the greatest force at the disposal of
  mankind. It is mightier than the mightiest weapon of
  destruction devised by the ingenuity of man. -Gandhi