1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-09-21 15:01:41 +02:00

Remove lockfiles and other changes

This commit is contained in:
Werner Koch 2000-12-28 15:49:42 +00:00
parent d188c1c37f
commit 94c45b7ff3
8 changed files with 38 additions and 5 deletions

1
THANKS
View File

@ -114,6 +114,7 @@ Oskari J
Paul D. Smith psmith@baynetworks.com
Per Cederqvist ceder@lysator.liu.se
Philippe Laliberte arsphl@oeil.qc.ca
Peter Fales psfales@lucent.com
Peter Gutmann pgut001@cs.auckland.ac.nz
Peter Marschall Peter.Marschall@gedos.de
QingLong qinglong@bolizm.ihep.su

View File

@ -1 +1 @@
1.0.4c
1.0.4d

View File

@ -67,6 +67,25 @@ dlsym(void *handle, char *name)
}
#endif /*HAVE_DL_SHL_LOAD*/
#ifdef __MINGW32__
#warning Needs some more work. Based on Disastry@saiknes.lv patch.
#define dlopen(PATHNAME,MODE) ((void *)LoadLibrary(PATHNAME))
#define dlclose(HANDLE) FreeLibrary(HANDLE)
char *dlerror(void)
{
static char dlerrstr[10];
int err=GetLastError();
if (!err)
return NULL;
sprintf(dlerrstr, "%u", err);
return dlerrstr;
}
#define dlsym(HANDLE,NAME) GetProcAddress(HANDLE,NAME)
#endif /*__MINGW32__*/
typedef struct ext_list {

View File

@ -1,3 +1,9 @@
2000-12-28 Werner Koch <wk@gnupg.org>
* signal.c (got_fatal_signal): Remove lockfiles here because the
atexit stuff does not work due to the use of raise. Suggested by
Peter Fales.
2000-12-19 Werner Koch <wk@gnupg.org>
* status.c, status.h (cpr_get_no_help): New.

View File

@ -75,6 +75,9 @@ got_fatal_signal( int sig )
sigaction( sig, &nact, NULL);
}
#endif
remove_lockfiles ();
raise( sig );
}

View File

@ -136,7 +136,7 @@ void disable_dotlock(void);
DOTLOCK create_dotlock( const char *file_to_lock );
int make_dotlock( DOTLOCK h, long timeout );
int release_dotlock( DOTLOCK h );
void remove_lockfiles (void);
/*-- fileutil.c --*/
char * make_basename(const char *filepath);

View File

@ -1,3 +1,8 @@
2000-12-28 Werner Koch <wk@gnupg.org>
* dotlock.c: Made all_lockfiles volatile.
(remove_lockfiles): Made public.
2000-11-30 Werner Koch <wk@gnupg.org>
* iobuf.c (iobuf_translate_file_handle): New.

View File

@ -46,11 +46,10 @@ struct dotlock_handle {
};
static DOTLOCK all_lockfiles;
static volatile DOTLOCK all_lockfiles;
static int never_lock;
static int read_lockfile( const char *name );
static void remove_lockfiles(void);
void
disable_dotlock(void)
@ -349,7 +348,7 @@ read_lockfile( const char *name )
}
static void
void
remove_lockfiles()
{
#ifndef HAVE_DOSISH_SYSTEM