mirror of
https://github.com/git/git.git
synced 2024-11-27 03:53:55 +08:00
lockfile.c: rename static functions
* remove_lock_file() -> remove_lock_files() * remove_lock_file_on_signal() -> remove_lock_files_on_signal() Suggested-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
47ba4662bf
commit
316683bd37
10
lockfile.c
10
lockfile.c
@ -57,7 +57,7 @@
|
||||
|
||||
static struct lock_file *volatile lock_file_list;
|
||||
|
||||
static void remove_lock_file(void)
|
||||
static void remove_lock_files(void)
|
||||
{
|
||||
pid_t me = getpid();
|
||||
|
||||
@ -68,9 +68,9 @@ static void remove_lock_file(void)
|
||||
}
|
||||
}
|
||||
|
||||
static void remove_lock_file_on_signal(int signo)
|
||||
static void remove_lock_files_on_signal(int signo)
|
||||
{
|
||||
remove_lock_file();
|
||||
remove_lock_files();
|
||||
sigchain_pop(signo);
|
||||
raise(signo);
|
||||
}
|
||||
@ -146,8 +146,8 @@ static int lock_file(struct lock_file *lk, const char *path, int flags)
|
||||
|
||||
if (!lock_file_list) {
|
||||
/* One-time initialization */
|
||||
sigchain_push_common(remove_lock_file_on_signal);
|
||||
atexit(remove_lock_file);
|
||||
sigchain_push_common(remove_lock_files_on_signal);
|
||||
atexit(remove_lock_files);
|
||||
}
|
||||
|
||||
if (lk->active)
|
||||
|
Loading…
Reference in New Issue
Block a user