From 39f81d3e9e9b0389d1cba74b1e327e55392440ef Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Mon, 12 Feb 2018 13:00:38 -0700 Subject: [PATCH] Change name of atExitCleanup function --- src/snark/snark.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/snark/snark.cpp b/src/snark/snark.cpp index 07b8521..3599753 100644 --- a/src/snark/snark.cpp +++ b/src/snark/snark.cpp @@ -263,7 +263,7 @@ INTEGER GetCommandPhase(INTEGER code) return Phase[code]; } -void unlinkLockfile(void) { +void atExitCleanup(void) { #ifndef __CYGWIN__ if (gLockFd >= 0) { close(gLockFd); @@ -312,7 +312,7 @@ int snark(int argc, char *argv[]) sprintf(str,"%d\n",getpid()); write(gLockFd,str,strlen(str)); /* record pid to lockfile */ - atexit(unlinkLockfile); + atexit(atExitCleanup); #endif -- 2.34.1