From: Kevin M. Rosenberg Date: Mon, 12 Feb 2018 20:00:38 +0000 (-0700) Subject: Change name of atExitCleanup function X-Git-Url: http://git.kpe.io/?p=snark14.git;a=commitdiff_plain;h=39f81d3e9e9b0389d1cba74b1e327e55392440ef Change name of atExitCleanup function --- 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