mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-20 21:29:58 +01:00
Remove lockfiles and other changes
This commit is contained in:
parent
d188c1c37f
commit
94c45b7ff3
1
THANKS
1
THANKS
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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.
|
||||
|
@ -75,6 +75,9 @@ got_fatal_signal( int sig )
|
||||
sigaction( sig, &nact, NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
remove_lockfiles ();
|
||||
|
||||
raise( sig );
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user