Skip to content

Commit

Permalink
lockfile.c: rename static functions
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
mhagger authored and gitster committed Oct 1, 2014
1 parent 47ba466 commit 316683b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lockfile.c
Expand Up @@ -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();

Expand All @@ -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);
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 316683b

Please sign in to comment.