aboutsummaryrefslogtreecommitdiffstats
path: root/util/dotlock.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gpg: signal handling fixNIIBE Yutaka2013-07-121-11/+25
| | | | | | | | | | | | | | | | | | | | | | | | * include/dotlock.h (dotlock_remove_lockfiles_reclaim): New. (dotlock_destroy, dotlock_remove_lockfiles): Add a flag to reclaim memory or not. * util/dotlock.c (dotlock_create): Use dotlock_remove_lockfiles_reclaim for atexit. (dotlock_destroy_unix, dotlock_destroy) (dotlock_remove_lockfiles): Add a reclaim flag. (dotlock_remove_lockfiles_reclaim): New. * g10/signal.c (got_fatal_signal): Disable flag of reclaim memory to avoid non-async-face call. * g10/keydb.c (maybe_create_keyring): Follow the API change. * g10/gpgv.c: Follow the API change. -- signal handler got_fatal_signal should not call non-async-signal-safe functions. When malloc is interrupted by a signal, it screws up. This issue is reported: https://bugs.g10code.com/gnupg/issue1515 http://bugs.debian.org/399904
* Replace file locking by the new portable dotlock code.Werner Koch2012-01-101-436/+1119
| | | | | | | | | | | | | * include/dotlock.h: New. From current gnupg master. * util/dotlock.c: Ditto. Include util.h. The major changes done in master are: Factor Unix and W32 specific code out into specific functions. Define HAVE_POSIX_SYSTEM. Rearrange some functions. (disable_dotlock): Rename to dotlock_disable. (create_dotlock): Rename to dotlock_create and add a dummy arg. (destroy_dotlock): Rename to dotlock_destroy. (make_dotlock): Rename to dotlock_take. (release_dotlock): Rename to dotlock_release. (remove_lockfiles): Rename to dotlock_remove_lockfiles.
* Improve dotlocking.Werner Koch2009-05-051-211/+383
| | | | | Implement locking for W32.
* Switched to GPLv3.Werner Koch2007-10-231-4/+2
| | | | | Updated gettext.
* * mkdtemp.c (mkdtemp): Fix warning.David Shaw2005-12-061-2/+2
| | | | | | * secmem.c, assuan-buffer.c, dotlock.c: Fix a few warnings from printf-ing %p where the arg wasn't void *.
* Converted all m_free to xfree etc.Werner Koch2005-07-271-12/+12
|
* * dotlock.c [HAVE_DOSISH_SYSTEM]: Fix unused function warnings on mingw32.David Shaw2005-06-081-49/+43
| | | | | Noted by Joe Vender.
* Updated FSF street address and preparations for a release candidate.Werner Koch2005-05-311-1/+2
|
* * iobuf.c (pop_filter): Make static.David Shaw2004-09-301-11/+49
| | | | | | | * dotlock.c (destroy_dotlock): New. Remove the handle from the list of locks. (release_dotlock): Don't act if we don't have any locks at all. From Werner on stable branch.
* * dotlock.c, http.c, iobuf.c, simple-gettext.c, srv.c, srv.h, strgutil.c,David Shaw2003-08-281-0/+2
| | | | | | | | | ttyio.c, w32reg.c: s/__MINGW32__/_WIN32/ to help building on native Windows compilers. Requested by Brian Gladman. From Werner on stable branch. * http.c (connect_server): Oops - forgot to freeaddrinfo().
* * argparse.c, dotlock.c, fileutil.c, iobuf.c, miscutil.c,David Shaw2003-05-241-20/+19
| | | | | | | | simple-gettext.c, errors.c, http.c, memory.c, secmem.c, ttyio.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
* added RISC OS module loading supportStefan Bellon2002-10-311-2/+2
|
* Update head to match stable 1.0David Shaw2002-06-291-0/+420
|
* See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner KochWerner Koch2000-01-241-346/+0
|
* See ChangeLog: Mon Aug 30 20:38:33 CEST 1999 Werner KochWerner Koch1999-08-301-0/+1
|
* See ChangeLog: Sat Jun 26 12:15:59 CEST 1999 Werner KochWerner Koch1999-06-261-3/+3
|
* See ChangeLog: Sun May 23 14:20:22 CEST 1999 Werner KochWerner Koch1999-05-231-0/+4
|
* See ChangeLog: Tue Feb 16 14:10:02 CET 1999 Werner KochWerner Koch1999-02-161-2/+3
|
* See ChangeLog: Wed Feb 10 17:15:39 CET 1999 Werner KochWerner Koch1999-02-101-83/+178
|
* See ChangeLog: Sat Jan 9 18:54:57 CET 1999 Werner KochWerner Koch1999-01-091-0/+1
|
* See ChangeLog: Sun Jan 3 15:28:44 CET 1999 Werner KochWerner Koch1999-01-031-16/+18
|
* See ChangeLog: Tue Dec 29 14:41:47 CET 1998 Werner KochWerner Koch1998-12-291-8/+11
|
* See ChangeLog: Wed Dec 23 13:34:22 CET 1998 Werner KochWerner Koch1998-12-231-3/+3
|
* See ChangeLog: Fri Nov 27 21:37:41 CET 1998 Werner KochWerner Koch1998-11-271-39/+100
|
* See ChangeLog ;-). Key validation should now be fasterWerner Koch1998-11-131-1/+1
|
* Snapshot release 0.4.2V0-4-2Werner Koch1998-10-181-13/+13
|
* backupWerner Koch1998-10-121-0/+178